summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/gui.zig7
-rw-r--r--src/tty/tty.zig2
2 files changed, 8 insertions, 1 deletions
diff --git a/src/gui/gui.zig b/src/gui/gui.zig
index 2d9124cc..a342cfe2 100644
--- a/src/gui/gui.zig
+++ b/src/gui/gui.zig
@@ -2333,6 +2333,9 @@ fn reopenWindow(g: *Gui) bool {
g.window = window;
if (g.window_slot) |slot| slot.* = window;
updateDisplayScale(window);
+ // ponytail: another view's window asks the hit test of whichever
+ // window's share the Gui holds then (the workspace tag sits in the same
+ // place in every view); a test per window if one moves it.
if (!g.capture) _ = c.SDL_SetWindowHitTest(window, hitTest, g);
_ = c.SDL_StartTextInput(window);
return true;
@@ -9604,7 +9607,9 @@ fn rulePx(chrome: *const pardes.Chrome) f32 {
/// by which every size given in logical pixels is drawn, as acme scales its
/// Border, ButtonBorder and Scrollgap (scalesize). Cells, glyphs and what is
/// measured in them are already the display's pixels and are not scaled.
-/// ponytail: one window per process, so one global; per window if ever two.
+/// ponytail: one per process: a session's windows (views.zig) on screens
+/// of two densities draw at the density of the last one opened or moved;
+/// a field of `window_fields` when that matters.
var display_scale: f32 = 1;
/// The window's display scale, or PARDES_TEST_SCALE (a harness forcing 2x);
diff --git a/src/tty/tty.zig b/src/tty/tty.zig
index b56e74b1..a7048645 100644
--- a/src/tty/tty.zig
+++ b/src/tty/tty.zig
@@ -1677,6 +1677,8 @@ const Shell = struct {
pipe_tasks: PipeTasks = .{},
threads_ok: bool = false,
check_files: bool = false,
+ // ponytail: one bracketed paste at a time for every terminal: keys
+ // another terminal sends while one pastes join its paste.
in_paste: bool = false,
/// PARDES_TEST_CLOCK's virtual time (host_io.testClock), and where the
/// running-out wait moves it: the core's next wake.