add guard against mangling root window in quickreshape()

This commit is contained in:
Iris Lightshard 2020-02-29 10:38:12 -05:00
parent ae6903668b
commit 467f53aa0b
Signed by: Iris Lightshard
GPG key ID: 3B7FBC22144E6398

2
key.c
View file

@ -191,6 +191,8 @@ keyrelease(XKeyEvent *e)
void
quickreshape(Client *c, int x, int y, int dx, int dy)
{
if (c == 0)
return;
XMoveResizeWindow(dpy, c->parent, x,y, dx, dy);
c->x = x + BORDER;
c->y = y + BORDER;