Fix errors with windows without titlebar
This commit is contained in:
parent
6818a692d2
commit
b51e352ed8
4
client.c
4
client.c
|
@ -203,7 +203,7 @@ client_ban(Client *c)
|
|||
client_unfocus(c);
|
||||
XUnmapWindow(globalconf.display, c->win);
|
||||
window_setstate(c->win, IconicState);
|
||||
if(c->titlebar.position)
|
||||
if(c->titlebar.sw)
|
||||
XUnmapWindow(globalconf.display, c->titlebar.sw->window);
|
||||
}
|
||||
|
||||
|
@ -692,7 +692,7 @@ client_unban(Client *c)
|
|||
{
|
||||
XMapWindow(globalconf.display, c->win);
|
||||
window_setstate(c->win, NormalState);
|
||||
if(c->titlebar.position)
|
||||
if(c->titlebar.sw && c->titlebar.position != Off)
|
||||
XMapWindow(globalconf.display, c->titlebar.sw->window);
|
||||
}
|
||||
|
||||
|
|
2
event.c
2
event.c
|
@ -308,7 +308,7 @@ event_handle_expose(XEvent *e)
|
|||
}
|
||||
|
||||
for(c = globalconf.clients; c; c = c->next)
|
||||
if(c->titlebar.position && c->titlebar.sw->window == ev->window)
|
||||
if(c->titlebar.sw && c->titlebar.sw->window == ev->window)
|
||||
{
|
||||
simplewindow_refresh_drawable(c->titlebar.sw, get_phys_screen(c->screen));
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue