Add check for sw
This commit is contained in:
parent
e5fbbcb612
commit
3ea5fd79d8
|
@ -30,7 +30,7 @@ titlebar_update(Client *c)
|
||||||
style_t style;
|
style_t style;
|
||||||
area_t geometry;
|
area_t geometry;
|
||||||
|
|
||||||
if(!c->titlebar.position)
|
if(!c->titlebar.position || !c->titlebar.sw)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
ctx = draw_context_new(globalconf.display, c->titlebar.sw->phys_screen,
|
ctx = draw_context_new(globalconf.display, c->titlebar.sw->phys_screen,
|
||||||
|
@ -59,6 +59,9 @@ titlebar_update(Client *c)
|
||||||
void
|
void
|
||||||
titlebar_update_geometry_floating(Client *c)
|
titlebar_update_geometry_floating(Client *c)
|
||||||
{
|
{
|
||||||
|
if(!c->titlebar.sw)
|
||||||
|
return;
|
||||||
|
|
||||||
switch(c->titlebar.position)
|
switch(c->titlebar.position)
|
||||||
{
|
{
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue