projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e334f7b
)
fallback when nothing is focused and we switch desktops!
author
Dana Jansens
<danakj@orodu.net>
Tue, 16 Sep 2003 06:59:48 +0000
(06:59 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Tue, 16 Sep 2003 06:59:48 +0000
(06:59 +0000)
openbox/screen.c
patch
|
blob
|
history
diff --git
a/openbox/screen.c
b/openbox/screen.c
index e5640256689949044a8c9f7b02dfda77b5043746..1295ccaae1f33196b7b4e0814fed9e2d1673ba3b 100644
(file)
--- a/
openbox/screen.c
+++ b/
openbox/screen.c
@@
-434,6
+434,9
@@
void screen_set_desktop(guint num)
frame_hide(c->frame);
}
}
+
+ if (!focus_client)
+ focus_fallback(OB_FOCUS_FALLBACK_NOFOCUS);
}
static void get_row_col(guint d, guint *r, guint *c)
@@
-725,7
+728,7
@@
void screen_update_layout()
if (rows * cols >= screen_num_desktops + cols)
rows--;
} else if (rows == 0) {
- rows = screen_num_desktops /
row
s;
+ rows = screen_num_desktops /
col
s;
if (cols * rows < screen_num_desktops)
rows++;
if (cols * rows >= screen_num_desktops + rows)