Ticket #31944: patch-thunar-vfs-exec.c

File patch-thunar-vfs-exec.c, 733 bytes (added by afb@…, 13 years ago)
Line 
1--- ./thunar-vfs/thunar-vfs-exec.c.orig 2010-05-21 19:10:52.000000000 +0200
2+++ ./thunar-vfs/thunar-vfs-exec.c      2011-11-07 08:54:09.000000000 +0100
3@@ -370,6 +370,7 @@ tvsn_get_active_workspace_number (GdkScr
4 
5   root = gdk_screen_get_root_window (screen);
6 
7+#if defined(GDK_WINDOWING_X11)
8   /* determine the X atom values */
9   _NET_CURRENT_DESKTOP = XInternAtom (GDK_WINDOW_XDISPLAY (root), "_NET_CURRENT_DESKTOP", False);
10   _WIN_WORKSPACE = XInternAtom (GDK_WINDOW_XDISPLAY (root), "_WIN_WORKSPACE", False);
11@@ -398,6 +399,9 @@ tvsn_get_active_workspace_number (GdkScr
12         ws_num = *prop_ret;
13       XFree (prop_ret);
14     }
15+#else
16+  /* dunno what to do on non-X11 window systems */
17+#endif
18 
19   gdk_error_trap_pop ();
20