[gtk/global-coords: 24/28] win32: Stop using gdk_event_get_root_coords
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/global-coords: 24/28] win32: Stop using gdk_event_get_root_coords
- Date: Thu, 30 May 2019 23:10:01 +0000 (UTC)
commit 966c4f77d2458c918ff10a46171a617d73be89f2
Author: Matthias Clasen <mclasen redhat com>
Date: Wed May 29 17:49:27 2019 -0400
win32: Stop using gdk_event_get_root_coords
It seems we want local coords here anyway.
gdk/win32/gdksurface-win32.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gdk/win32/gdksurface-win32.c b/gdk/win32/gdksurface-win32.c
index be14e854a6..c82b397d03 100644
--- a/gdk/win32/gdksurface-win32.c
+++ b/gdk/win32/gdksurface-win32.c
@@ -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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]