mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 11:20:12 +00:00
win32: Stop using gdk_event_get_root_coords
It seems we want local coords here anyway.
This commit is contained in:
parent
f645c4e923
commit
c7f06dd35e
@ -4859,9 +4859,9 @@ gdk_win32_surface_show_window_menu (GdkSurface *window,
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
gdk_event_get_root_coords (event, &event_x, &event_y);
|
||||
x = event_x - _gdk_offset_x;
|
||||
y = event_y - _gdk_offset_y;
|
||||
gdk_event_get_coords (event, &event_x, &event_y);
|
||||
x = round (event_x);
|
||||
y = round (event_y);
|
||||
|
||||
SendMessage (GDK_SURFACE_HWND (window),
|
||||
WM_SYSMENU,
|
||||
|
Loading…
Reference in New Issue
Block a user