mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-17 09:16:11 +03:00
gtk: fix the alignment of the context menu
This aligns the top left of the context menu with the right-click location, rather than the top center.
This commit is contained in:
@ -47,6 +47,7 @@ pub fn Menu(
|
||||
const menu_model = builder.getObject(gio.MenuModel, "menu").?;
|
||||
|
||||
const menu_widget = gtk.PopoverMenu.newFromModelFull(menu_model, .{ .nested = true });
|
||||
menu_widget.as(gtk.Widget).setHalign(.start);
|
||||
menu_widget.as(gtk.Popover).setHasArrow(@intFromBool(arrow));
|
||||
_ = gtk.Popover.signals.closed.connect(
|
||||
menu_widget,
|
||||
|
Reference in New Issue
Block a user