Change the parent window to root to fix a bug when multiple instance of
xwinwrap are running.
This commit is contained in:
Charles Durieux 2020-08-05 18:11:34 +02:00
parent ec32e9b725
commit 6920062edd

View File

@ -489,7 +489,7 @@ int main(int argc, char **argv)
flags |= CWBackPixel;
}
window.window = XCreateWindow(display, window.desktop, window.x,
window.window = XCreateWindow(display, window.root, window.x,
window.y, window.width, window.height, 0, depth, InputOutput, visual,
flags, &attrs);
XLowerWindow(display, window.window);