update config to stay sane on a rotated monitor

This commit is contained in:
seanpringle
2012-09-21 16:08:49 +10:00
parent b683ac888e
commit 9ce7bfe2ea
2 changed files with 29 additions and 13 deletions

3
xoat.c
View File

@@ -586,8 +586,7 @@ Window spot_focus_top_window(int spot, int mon, Window except)
int spot_choose_by_direction(int spot, int mon, int dir)
{
monitor *m = &monitors[mon];
int rotate = m->w < m->h ? 1:0;
if (rotate)
if (m->w < m->h) // rotated?
{
if (dir == LEFT) return SPOT3;
if (dir == RIGHT) return SPOT2;