This commit is contained in:
seanpringle
2012-10-25 02:01:36 +10:00
parent 7014506f15
commit 1508e1a748
7 changed files with 90 additions and 68 deletions

15
spot.c
View File

@@ -84,6 +84,21 @@ Window spot_focus_top_window(int spot, int mon, Window except)
return None;
}
Window spot_try_focus_top_window(int spot, int mon, Window except)
{
Window w = spot_focus_top_window(spot, mon, except);
if (w == None)
{
current = None;
current_mon = mon;
current_spot = spot;
update_bars();
XSetInputFocus(display, PointerRoot, RevertToPointerRoot, CurrentTime);
}
return w;
}
int spot_choose_by_direction(int spot, int mon, int dir)
{
monitor *m = &monitors[mon];