jwm is telling me not to trust client :)
This commit is contained in:
parent
489067a27d
commit
67797e52d2
1 changed files with 5 additions and 5 deletions
|
|
@ -284,11 +284,11 @@ void loop_x(void) {
|
|||
if(windows[i].client == ev.xunmap.window) {
|
||||
XWindowAttributes xwa;
|
||||
|
||||
XGetWindowAttributes(xdisplay, windows[i].frame->lowlevel->x11.window, &xwa);
|
||||
|
||||
pthread_mutex_lock(&xmutex);
|
||||
XReparentWindow(xdisplay, windows[i].client, DefaultRootWindow(xdisplay), xwa.x, xwa.y);
|
||||
pthread_mutex_unlock(&xmutex);
|
||||
if(XGetWindowAttributes(xdisplay, windows[i].frame->lowlevel->x11.window, &xwa)) {
|
||||
pthread_mutex_lock(&xmutex);
|
||||
XReparentWindow(xdisplay, windows[i].client, DefaultRootWindow(xdisplay), xwa.x, xwa.y);
|
||||
pthread_mutex_unlock(&xmutex);
|
||||
}
|
||||
|
||||
wm_destroy(windows[i].frame);
|
||||
arrdel(windows, i);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue