[gtk+] broadway: Build fixes
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] broadway: Build fixes
- Date: Tue, 15 Aug 2017 13:00:09 +0000 (UTC)
commit 12b155eae7788cd6368c3d54dbfaeaff0766eefd
Author: Emmanuele Bassi <ebassi gnome org>
Date: Tue Aug 15 13:57:53 2017 +0100
broadway: Build fixes
The Broadway backend does not build after commit c409fca7 dropped some
occurrences of the root window from GDK.
gdk/broadway/gdkdevice-broadway.c | 4 ++--
gdk/broadway/gdkwindow-broadway.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gdk/broadway/gdkdevice-broadway.c b/gdk/broadway/gdkdevice-broadway.c
index 4a6bf68..4ac423c 100644
--- a/gdk/broadway/gdkdevice-broadway.c
+++ b/gdk/broadway/gdkdevice-broadway.c
@@ -172,9 +172,9 @@ gdk_broadway_device_query_state (GdkDevice *device,
if (root_y)
*root_y = device_root_y;
if (win_x)
- *win_x = device_root_x - toplevel->x;
+ *win_x = device_root_x;
if (win_y)
- *win_y = device_root_y - toplevel->y;
+ *win_y = device_root_y;
if (mask)
*mask = mask32;
if (child_window)
diff --git a/gdk/broadway/gdkwindow-broadway.c b/gdk/broadway/gdkwindow-broadway.c
index 0967ffe..17075bb 100644
--- a/gdk/broadway/gdkwindow-broadway.c
+++ b/gdk/broadway/gdkwindow-broadway.c
@@ -724,7 +724,7 @@ gdk_window_broadway_get_device_state (GdkWindow *window,
return FALSE;
GDK_DEVICE_GET_CLASS (device)->query_state (device, window,
- NULL, &child,
+ &child,
NULL, NULL,
x, y, mask);
return child != NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]