add guard against mangling root window in quickreshape()
This commit is contained in:
parent
ae6903668b
commit
467f53aa0b
1 changed files with 3 additions and 1 deletions
2
key.c
2
key.c
|
@ -191,6 +191,8 @@ keyrelease(XKeyEvent *e)
|
||||||
void
|
void
|
||||||
quickreshape(Client *c, int x, int y, int dx, int dy)
|
quickreshape(Client *c, int x, int y, int dx, int dy)
|
||||||
{
|
{
|
||||||
|
if (c == 0)
|
||||||
|
return;
|
||||||
XMoveResizeWindow(dpy, c->parent, x,y, dx, dy);
|
XMoveResizeWindow(dpy, c->parent, x,y, dx, dy);
|
||||||
c->x = x + BORDER;
|
c->x = x + BORDER;
|
||||||
c->y = y + BORDER;
|
c->y = y + BORDER;
|
||||||
|
|
Loading…
Reference in a new issue