diff options
author | Stefano Karapetsas <[email protected]> | 2014-01-15 17:03:00 +0100 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2014-01-15 17:03:00 +0100 |
commit | 250aa6b573bc495efe96dad816267daf65182a3c (patch) | |
tree | fb28bc23edf9161ee1c4d22d8e706f15d30d7ef5 /maximus/xutils.c | |
parent | 9d05ecd2763d64ee679e5ba350a1e5b70beb14b8 (diff) | |
download | mate-netbook-250aa6b573bc495efe96dad816267daf65182a3c.tar.bz2 mate-netbook-250aa6b573bc495efe96dad816267daf65182a3c.tar.xz |
maximus: Add GTK3 support
Diffstat (limited to 'maximus/xutils.c')
-rw-r--r-- | maximus/xutils.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/maximus/xutils.c b/maximus/xutils.c index 3ff03bb..b082ced 100644 --- a/maximus/xutils.c +++ b/maximus/xutils.c @@ -43,7 +43,11 @@ _wnck_error_trap_push (void) int _wnck_error_trap_pop (void) { +#if GTK_CHECK_VERSION (3, 0, 0) + XSync (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), False); +#else XSync (gdk_display, False); +#endif return gdk_error_trap_pop (); } @@ -78,7 +82,12 @@ _wnck_get_wmclass (Window xwindow, ch.res_name = NULL; ch.res_class = NULL; - XGetClassHint (gdk_display, xwindow, +#if GTK_CHECK_VERSION (3, 0, 0) + XGetClassHint (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), +#else + XGetClassHint (gdk_display, +#endif + xwindow, &ch); _wnck_error_trap_pop (); |