mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-28 04:55:08 +00:00
Make 16768a5ad4
C90-compliant
This commit is contained in:
parent
1e5bc370e4
commit
4addf71241
@ -663,6 +663,7 @@ void get_x11_desktop_info(Display *current_display, Atom atom)
|
|||||||
Window root;
|
Window root;
|
||||||
static Atom atom_current, atom_number, atom_names;
|
static Atom atom_current, atom_number, atom_names;
|
||||||
struct information *current_info = &info;
|
struct information *current_info = &info;
|
||||||
|
XWindowAttributes window_attributes;
|
||||||
|
|
||||||
root = RootWindow(current_display, current_info->x11.monitor.current);
|
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);
|
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
|
||||||
XWindowAttributes window_attributes;
|
|
||||||
XGetWindowAttributes(display, root, &window_attributes);
|
XGetWindowAttributes(display, root, &window_attributes);
|
||||||
if (!(window_attributes.your_event_mask & PropertyChangeMask)) {
|
if (!(window_attributes.your_event_mask & PropertyChangeMask)) {
|
||||||
XSetWindowAttributes attributes;
|
XSetWindowAttributes attributes;
|
||||||
|
Loading…
Reference in New Issue
Block a user