mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 16:56:09 +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;
|
return;
|
||||||
};
|
};
|
||||||
|
|
||||||
var point: c.graphene_point_t = .{
|
var point: c.graphene_point_t = .{ .x = x, .y = y };
|
||||||
.x = x,
|
|
||||||
.y = y,
|
|
||||||
};
|
|
||||||
if (c.gtk_widget_compute_point(
|
if (c.gtk_widget_compute_point(
|
||||||
self.primaryWidget(),
|
self.primaryWidget(),
|
||||||
@ptrCast(window.window),
|
@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);
|
c.gtk_popover_set_pointing_to(@ptrCast(@alignCast(window.context_menu)), &rect);
|
||||||
|
|
||||||
self.app.refreshContextMenu(self.core_surface.hasSelection());
|
self.app.refreshContextMenu(self.core_surface.hasSelection());
|
||||||
|
|
||||||
c.gtk_popover_popup(@ptrCast(@alignCast(window.context_menu)));
|
c.gtk_popover_popup(@ptrCast(@alignCast(window.context_menu)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user