diff options
author | infirit <[email protected]> | 2014-06-05 18:48:28 +0200 |
---|---|---|
committer | infirit <[email protected]> | 2014-06-05 18:48:28 +0200 |
commit | a3bd5bd5c972045b82359c1673dfdf91b99103b3 (patch) | |
tree | 3fc9856f964c6ff76b28ca8375d5319d3e521583 /libmate-desktop | |
parent | 6a0c8a93e30243232d63487c09ccb15a93755265 (diff) | |
download | mate-desktop-a3bd5bd5c972045b82359c1673dfdf91b99103b3.tar.bz2 mate-desktop-a3bd5bd5c972045b82359c1673dfdf91b99103b3.tar.xz |
Use GDK_WINDOW_XID to get xid for both Gtk+ versions
Diffstat (limited to 'libmate-desktop')
-rw-r--r-- | libmate-desktop/mate-rr.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libmate-desktop/mate-rr.c b/libmate-desktop/mate-rr.c index 197d75b..ae27277 100644 --- a/libmate-desktop/mate-rr.c +++ b/libmate-desktop/mate-rr.c @@ -673,11 +673,7 @@ mate_rr_screen_new (GdkScreen *gdk_screen, screen->gdk_screen = gdk_screen; screen->gdk_root = gdk_screen_get_root_window (gdk_screen); - #if GTK_CHECK_VERSION(3, 0, 0) - screen->xroot = gdk_x11_window_get_xid (screen->gdk_root); - #else - screen->xroot = gdk_x11_drawable_get_xid (screen->gdk_root); - #endif + screen->xroot = GDK_WINDOW_XID (screen->gdk_root); screen->xdisplay = dpy; screen->xscreen = gdk_x11_screen_get_xscreen (screen->gdk_screen); screen->connector_type_atom = XInternAtom (dpy, "ConnectorType", FALSE); |