unsigned char *prop = NULL;
struct information *current_info = &info;
+ if (atom == None) return;
+
if ( (XGetWindowProperty( current_display, root, atom,
0, 1L, False, XA_CARDINAL,
&actual_type, &actual_format, &nitems,
unsigned char *prop = NULL;
struct information *current_info = &info;
+ if (atom == None) return;
+
if ( (XGetWindowProperty( current_display, root, atom,
0, 1L, False, XA_CARDINAL,
&actual_type, &actual_format, &nitems,
unsigned char *prop = NULL;
struct information *current_info = &info;
+ if (atom == None) return;
+
if ( (XGetWindowProperty( current_display, root, atom,
0, (~0L), False, ATOM(UTF8_STRING),
&actual_type, &actual_format, &nitems,
root = RootWindow(current_display, current_info->x11.monitor.current);
- //Check if we initialise else retrieve changed property
+ /* Check if we initialise else retrieve changed property */
if (atom == 0) {
atom_current = XInternAtom(current_display, "_NET_CURRENT_DESKTOP", True);
atom_number = XInternAtom(current_display, "_NET_NUMBER_OF_DESKTOPS", True);
get_x11_desktop_names(current_display, root, atom_names);
get_x11_desktop_current_name(current_info->x11.desktop.all_names);
- //Set the PropertyChangeMask on the root window, if not set
+ /* Set the PropertyChangeMask on the root window, if not set */
XGetWindowAttributes(display, root, &window_attributes);
if (!(window_attributes.your_event_mask & PropertyChangeMask)) {
XSetWindowAttributes attributes;