mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
gtk: use wide handle for GtkPaned
Improves #3020. Ensures that the drag handle for the pane separator never overlaps pane content. See recommendation in upstream Gtk issue: https://gitlab.gnome.org/GNOME/gtk/-/issues/4484#note_2362002
This commit is contained in:
@ -111,6 +111,12 @@ pub fn init(
|
||||
// Keep a long-lived reference, which we unref in destroy.
|
||||
_ = c.g_object_ref(paned);
|
||||
|
||||
// Ensure that the drag handle for split panes never overlaps
|
||||
// pane content. (#3020)
|
||||
// See recommendation in upstream Gtk issue:
|
||||
// https://gitlab.gnome.org/GNOME/gtk/-/issues/4484#note_2362002
|
||||
c.gtk_paned_set_wide_handle(@ptrCast(paned), @intFromBool(true));
|
||||
|
||||
// Update all of our containers to point to the right place.
|
||||
// The split has to point to where the sibling pointed to because
|
||||
// we're inheriting its parent. The sibling points to its location
|
||||
@ -371,7 +377,6 @@ fn directionRight(self: *const Split, from: Side) ?*Surface {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
fn directionPrevious(self: *const Split, from: Side) ?struct {
|
||||
surface: *Surface,
|
||||
wrapped: bool,
|
||||
|
Reference in New Issue
Block a user