mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 00:36:07 +03:00
apprt/gtk: some stylistic changes
This commit is contained in:
@ -1177,10 +1177,7 @@ fn showContextMenu(self: *Surface, x: f32, y: f32) void {
|
||||
return;
|
||||
};
|
||||
|
||||
var point: c.graphene_point_t = .{
|
||||
.x = x,
|
||||
.y = y,
|
||||
};
|
||||
var point: c.graphene_point_t = .{ .x = x, .y = y };
|
||||
if (c.gtk_widget_compute_point(
|
||||
self.primaryWidget(),
|
||||
@ptrCast(window.window),
|
||||
@ -1199,9 +1196,7 @@ fn showContextMenu(self: *Surface, x: f32, y: f32) void {
|
||||
};
|
||||
|
||||
c.gtk_popover_set_pointing_to(@ptrCast(@alignCast(window.context_menu)), &rect);
|
||||
|
||||
self.app.refreshContextMenu(self.core_surface.hasSelection());
|
||||
|
||||
c.gtk_popover_popup(@ptrCast(@alignCast(window.context_menu)));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user