Fix bug
Change the parent window to root to fix a bug when multiple instance of xwinwrap are running.
This commit is contained in:
parent
ec32e9b725
commit
6920062edd
@ -489,7 +489,7 @@ int main(int argc, char **argv)
|
|||||||
flags |= CWBackPixel;
|
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,
|
window.y, window.width, window.height, 0, depth, InputOutput, visual,
|
||||||
flags, &attrs);
|
flags, &attrs);
|
||||||
XLowerWindow(display, window.window);
|
XLowerWindow(display, window.window);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user