Revert "gtk: Point right-click context menu exactly at cursor to improve behaviour at edges and closeness to cursor"

This reverts commit bf5351ed416b12575d377fe0bd5628df515cb71e.
This commit is contained in:
azhn
2025-02-12 19:50:32 +11:00
parent bf5351ed41
commit c061d06aa1

View File

@ -1284,8 +1284,8 @@ fn showContextMenu(self: *Surface, x: f32, y: f32) void {
const rect: c.GdkRectangle = .{
.x = @intFromFloat(point.x),
.y = @intFromFloat(point.y),
.width = 0,
.height = 0,
.width = 1,
.height = 1,
};
c.gtk_popover_set_pointing_to(@ptrCast(@alignCast(window.context_menu)), &rect);