summaryrefslogtreecommitdiff
path: root/gdk/x11/gdkdevicemanager-xi2.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2017-11-09 18:40:16 -0500
committerMatthias Clasen <mclasen@redhat.com>2017-11-09 22:52:37 -0500
commitbdb442be21471a91820219347b1345ed7b84d034 (patch)
treed13bb6f7ea44ab942d4d9dfa7c3c5a1085bb8223 /gdk/x11/gdkdevicemanager-xi2.c
parent2aa52c7d0083f39615f33f663f247dc3fe2e23df (diff)
downloadgtk+-bdb442be21471a91820219347b1345ed7b84d034.tar.gz
x11: Reduce uses of the root window
Avoid calling the get_root_window api that returns a GdkWindow in some places, and instead use the X root window directly.
Diffstat (limited to 'gdk/x11/gdkdevicemanager-xi2.c')
-rw-r--r--gdk/x11/gdkdevicemanager-xi2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdk/x11/gdkdevicemanager-xi2.c b/gdk/x11/gdkdevicemanager-xi2.c
index 165c8d5152..0a19caae36 100644
--- a/gdk/x11/gdkdevicemanager-xi2.c
+++ b/gdk/x11/gdkdevicemanager-xi2.c
@@ -744,7 +744,7 @@ gdk_x11_device_manager_xi2_constructed (GObject *object)
event_mask.mask = mask;
_gdk_x11_device_manager_xi2_select_events (GDK_DEVICE_MANAGER (object),
- GDK_WINDOW_XID (gdk_x11_display_get_root_window (display)),
+ GDK_DISPLAY_XROOTWIN (display),
&event_mask);
}