mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
resize-overlay: change default and delay → duration
Change the default to `after-first` and change `resize-overlay-delay` → `resize-overlay-duration`.
This commit is contained in:
@ -2088,7 +2088,7 @@ fn gtkUpdateOverlayWidget(ud: ?*anyopaque) callconv(.C) c.gboolean {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
self.resize_overlay_timer = c.g_timeout_add(
|
self.resize_overlay_timer = c.g_timeout_add(
|
||||||
self.app.config.@"resize-overlay-delay".asMilliseconds(),
|
self.app.config.@"resize-overlay-duration".asMilliseconds(),
|
||||||
gtkResizeOverlayTimerExpired,
|
gtkResizeOverlayTimerExpired,
|
||||||
@ptrCast(self),
|
@ptrCast(self),
|
||||||
);
|
);
|
||||||
|
@ -868,13 +868,13 @@ keybind: Keybinds = .{},
|
|||||||
/// is first created, but will show up if the surface is
|
/// is first created, but will show up if the surface is
|
||||||
/// subsequently resized.
|
/// subsequently resized.
|
||||||
///
|
///
|
||||||
/// The default is `always`.
|
/// The default is `after-first`.
|
||||||
///
|
///
|
||||||
/// Changing this value at runtime and reloading the configuration will only
|
/// Changing this value at runtime and reloading the configuration will only
|
||||||
/// affect new windows, tabs, and splits.
|
/// affect new windows, tabs, and splits.
|
||||||
///
|
///
|
||||||
/// Linux/GTK only.
|
/// Linux/GTK only.
|
||||||
@"resize-overlay": ResizeOverlay = .always,
|
@"resize-overlay": ResizeOverlay = .@"after-first",
|
||||||
|
|
||||||
/// If resize overlays are enabled, this controls the position of the overlay.
|
/// If resize overlays are enabled, this controls the position of the overlay.
|
||||||
/// The possible options are:
|
/// The possible options are:
|
||||||
@ -924,7 +924,7 @@ keybind: Keybinds = .{},
|
|||||||
/// value larger than this will be clamped to the maximum value.
|
/// value larger than this will be clamped to the maximum value.
|
||||||
///
|
///
|
||||||
/// Linux/GTK only.
|
/// 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
|
// 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.
|
// that is focused. This only applies to the currently focused window; i.e.
|
||||||
|
Reference in New Issue
Block a user