improve spot detection when toggling max/mav/maxh off

This commit is contained in:
Sean Pringle
2013-06-12 13:52:47 +10:00
parent 0de1e0a6d2
commit 76e13ad393
2 changed files with 25 additions and 10 deletions

View File

@@ -113,7 +113,10 @@ void unmap_notify(XEvent *e)
{
// if this window was focused, find something else
if (e->xunmap.window == current && !spot_focus_top_window(current_spot, current_mon, current))
{ int i; for_spots(i) if (spot_focus_top_window(i, current_mon, current)) break; }
{
int i; for_spots(i)
if (spot_focus_top_window(i, current_mon, current)) break;
}
ewmh_client_list();
update_bars();
}