summaryrefslogtreecommitdiff
path: root/src/Event.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/Event.zig')
-rw-r--r--src/Event.zig14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/Event.zig b/src/Event.zig
index bf27ff69..63dcb5f2 100644
--- a/src/Event.zig
+++ b/src/Event.zig
@@ -4,7 +4,6 @@ const config = @import("config.zig");
const selection_pipe = @import("selection_pipe.zig");
const Stream = @import("Stream.zig");
const Layer = @import("Layer.zig");
-const pdf_enabled = @import("panes.zig").Pdf.enabled;
const RowMetrics = Layer.Metrics;
const TagHit = Layer.TagHit;
@@ -89,12 +88,12 @@ pub fn hit(key: Key, binding: []const config.Chord) bool {
pub const sel_slot = @backingInt(config.select_button);
-/// Pixel dimensions are meaningful only to the native PDF placement path.
-/// Keep resize events layout-only when that path is not part of the build.
-pub const CellPixels = if (pdf_enabled) struct {
+/// A cell's pixels, as the frontend draws it: what a kind's pictures and a
+/// terminal's kitty images are laid out at.
+pub const CellPixels = struct {
w: u16 = 8,
h: u16 = 16,
-} else struct {};
+};
pub const Event = union(enum) {
key: Key,
@@ -125,11 +124,6 @@ pub const Event = union(enum) {
search: Stream.Batch,
paste: []const u8,
command: []const u8,
- /// Native shells may preserve sub-cell wheel distance in physical pixels.
- /// TTY button events still enter through the ordinary mouse path.
- /// `glide`: a wheel's notch, which the strip glides; a touchpad's
- /// fraction is followed as it comes.
- pdf_scroll: struct { pane: u8, delta_pixels: f32, glide: bool = true },
/// The host pointer left the drawable area. Unlike an out-of-range motion,
/// this must not clamp onto and preview the final grid cell.
pointer_leave,