From 8b919df1f5e3195dcb059494e3197e9b2a4df4ee Mon Sep 17 00:00:00 2001 From: "Jeffrey C. Ollie" Date: Sat, 10 Aug 2024 13:20:03 -0500 Subject: [PATCH] =?UTF-8?q?resize-overlay:=20change=20default=20and=20dela?= =?UTF-8?q?y=20=E2=86=92=20duration?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change the default to `after-first` and change `resize-overlay-delay` → `resize-overlay-duration`. --- src/apprt/gtk/Surface.zig | 2 +- src/config/Config.zig | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/apprt/gtk/Surface.zig b/src/apprt/gtk/Surface.zig index 976820874..114eef19f 100644 --- a/src/apprt/gtk/Surface.zig +++ b/src/apprt/gtk/Surface.zig @@ -2088,7 +2088,7 @@ fn gtkUpdateOverlayWidget(ud: ?*anyopaque) callconv(.C) c.gboolean { } } self.resize_overlay_timer = c.g_timeout_add( - self.app.config.@"resize-overlay-delay".asMilliseconds(), + self.app.config.@"resize-overlay-duration".asMilliseconds(), gtkResizeOverlayTimerExpired, @ptrCast(self), ); diff --git a/src/config/Config.zig b/src/config/Config.zig index b4afd53da..209139897 100644 --- a/src/config/Config.zig +++ b/src/config/Config.zig @@ -868,13 +868,13 @@ keybind: Keybinds = .{}, /// is first created, but will show up if the surface is /// subsequently resized. /// -/// The default is `always`. +/// The default is `after-first`. /// /// Changing this value at runtime and reloading the configuration will only /// affect new windows, tabs, and splits. /// /// Linux/GTK only. -@"resize-overlay": ResizeOverlay = .always, +@"resize-overlay": ResizeOverlay = .@"after-first", /// If resize overlays are enabled, this controls the position of the overlay. /// The possible options are: @@ -924,7 +924,7 @@ keybind: Keybinds = .{}, /// value larger than this will be clamped to the maximum value. /// /// Linux/GTK only. -@"resize-overlay-delay": Duration = .{ .duration = 750 * std.time.ns_per_ms }, +@"resize-overlay-duration": Duration = .{ .duration = 750 * std.time.ns_per_ms }, // If true, when there are multiple split panes, the mouse selects the pane // that is focused. This only applies to the currently focused window; i.e.