grim/guifications2

Parents 84ee43f92027
Children 8dc511042f99
removed the code that got the number of desktops from the XAtom since we weren't using it anyways...
--- a/src/x11/gf_x11_display.c Sun Dec 04 17:39:13 2011 -0600
+++ b/src/x11/gf_x11_display.c Sun Dec 04 17:46:27 2011 -0600
@@ -33,7 +33,7 @@
Atom xa_desktops, xa_current, xa_workarea, xa_type;
Display *x_display = NULL;
Window x_root;
- guint32 desktops = 0, current = 0;
+ guint32 current = 0;
gulong *workareas, len, fill;
guchar *data;
gint format;
@@ -66,20 +66,6 @@
if(xa_desktops == None)
return FALSE;
- /* get the number of desktops */
- if(XGetWindowProperty(x_display, x_root, xa_desktops, 0, 1, False,
- XA_CARDINAL, &xa_type, &format, &len, &fill,
- &data) != Success)
- {
- return FALSE;
- }
-
- if(!data)
- return FALSE;
-
- desktops = *(guint32 *)data;
- XFree(data);
-
/* find the _NET_CURRENT_DESKTOP atom */
xa_current = XInternAtom(x_display, "_NET_CURRENT_DESKTOP", True);
if(xa_current == None)