Fix bug with floating windows and titlebar
This commit is contained in:
parent
95f8325c06
commit
539636c77e
10
client.c
10
client.c
|
@ -601,14 +601,20 @@ client_resize(Client *c, area_t geometry)
|
||||||
if(!c->ismax)
|
if(!c->ismax)
|
||||||
c->f_geometry = geometry;
|
c->f_geometry = geometry;
|
||||||
|
|
||||||
if(c->titlebar.position)
|
if(c->titlebar.sw)
|
||||||
{
|
{
|
||||||
|
switch(c->titlebar.position)
|
||||||
|
{
|
||||||
|
case Top:
|
||||||
simplewindow_move_resize(c->titlebar.sw,
|
simplewindow_move_resize(c->titlebar.sw,
|
||||||
geometry.x,
|
geometry.x,
|
||||||
geometry.y - c->titlebar.sw->geometry.height,
|
geometry.y - c->titlebar.sw->geometry.height,
|
||||||
geometry.width,
|
geometry.width,
|
||||||
c->titlebar.sw->geometry.height);
|
c->titlebar.sw->geometry.height);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
client_updatetitlebar(c);
|
client_updatetitlebar(c);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue