Selbar: Unmap selbar if there is no selected client
This commit is contained in:
parent
8e3e10f041
commit
55e74cd849
@ -174,6 +174,14 @@ infobar_draw_selbar(int sc)
|
||||
if(!conf.bars.selbar)
|
||||
return;
|
||||
|
||||
if(!sel && infobar[sc].selbar->mapped)
|
||||
{
|
||||
barwin_unmap(infobar[sc].selbar);
|
||||
return;
|
||||
}
|
||||
else if(sel && !infobar[sc].selbar->mapped)
|
||||
barwin_map(infobar[sc].selbar);
|
||||
|
||||
barwin_move(infobar[sc].selbar,
|
||||
((conf.layout_placement)
|
||||
? (infobar[sc].tags_board->geo.x + infobar[sc].tags_board->geo.width + PAD / 2)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user