mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-27 12:42:41 +00:00
Make conky not crash when drawing on root window
It was failing in XQueryColor because colourmap was NULL. This seemed to help.
This commit is contained in:
parent
926af1041e
commit
9bee219adf
@ -531,6 +531,8 @@ void init_window(int own_window, int w, int h, int set_trans, int back_colour,
|
||||
if (!window.window) {
|
||||
window.window = find_desktop_window(&window.root, &window.desktop);
|
||||
}
|
||||
window.visual = DefaultVisual(display, screen);
|
||||
window.colourmap = DefaultColormap(display, screen);
|
||||
|
||||
if (XGetWindowAttributes(display, window.window, &attrs)) {
|
||||
window.width = attrs.width;
|
||||
|
Loading…
Reference in New Issue
Block a user