titlebar: unmap when going to Off position (FS#156)

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Nikos Ntarmos 2009-04-01 16:53:27 +02:00 committed by Julien Danjou
parent bc2e7cde15
commit ec6f9fa825
1 changed files with 2 additions and 0 deletions

View File

@ -159,6 +159,8 @@ titlebar_draw(Client *c)
switch(c->titlebar.position)
{
case Off:
if (c->titlebar.sw)
XUnmapWindow(globalconf.display, c->titlebar.sw->window);
return;
case Right:
case Left: