diff options
author | Matthias Clasen <mclasen@redhat.com> | 2017-11-09 18:40:16 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2017-11-09 22:52:37 -0500 |
commit | bdb442be21471a91820219347b1345ed7b84d034 (patch) | |
tree | d13bb6f7ea44ab942d4d9dfa7c3c5a1085bb8223 /gdk/x11/gdkdevicemanager-xi2.c | |
parent | 2aa52c7d0083f39615f33f663f247dc3fe2e23df (diff) | |
download | gtk+-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.c | 2 |
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); } |