mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-17 18:45:10 +00:00
Bugfix in own_window setting handler
This commit is contained in:
parent
8cb63b0c8b
commit
bee7b9b99c
15
src/x11.cc
15
src/x11.cc
@ -103,11 +103,6 @@ namespace priv {
|
||||
|
||||
if(init) {
|
||||
if(do_convert(l, -1).first) {
|
||||
if(not out_to_x.get(l)) {
|
||||
// own_window makes no sense when not drawing to X
|
||||
l.pop();
|
||||
l.pushboolean(false);
|
||||
}
|
||||
#ifndef OWN_WINDOW
|
||||
std::cerr << "Support for the own_window setting has been "
|
||||
"disabled during compilation\n";
|
||||
@ -115,7 +110,15 @@ namespace priv {
|
||||
l.pushboolean(false);
|
||||
#endif
|
||||
}
|
||||
init_window(l, do_convert(l, -1).first);
|
||||
|
||||
if(not out_to_x.get(l)) {
|
||||
// own_window makes no sense when not drawing to X
|
||||
l.pop();
|
||||
l.pushboolean(false);
|
||||
}
|
||||
|
||||
if(do_convert(l, -1).first)
|
||||
init_window(l, do_convert(l, -1).first);
|
||||
}
|
||||
|
||||
++s;
|
||||
|
Loading…
Reference in New Issue
Block a user