1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-27 04:32:55 +00:00

Make 16768a5ad4 C90-compliant

This commit is contained in:
Nikolas Garofil 2009-07-14 19:17:14 +02:00
parent 1e5bc370e4
commit 4addf71241

View File

@ -663,6 +663,7 @@ void get_x11_desktop_info(Display *current_display, Atom atom)
Window root;
static Atom atom_current, atom_number, atom_names;
struct information *current_info = &info;
XWindowAttributes window_attributes;
root = RootWindow(current_display, current_info->x11.monitor.current);
@ -677,7 +678,6 @@ void get_x11_desktop_info(Display *current_display, Atom atom)
get_x11_desktop_current_name(current_info->x11.desktop.all_names);
//Set the PropertyChangeMask on the root window, if not set
XWindowAttributes window_attributes;
XGetWindowAttributes(display, root, &window_attributes);
if (!(window_attributes.your_event_mask & PropertyChangeMask)) {
XSetWindowAttributes attributes;