summaryrefslogtreecommitdiff
path: root/openbox/screen.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-04-12 02:26:26 +0000
committerDana Jansens <danakj@orodu.net>2007-04-12 02:26:26 +0000
commitc03c08415f01a52584158aa4f0356f3a0d7a46aa (patch)
treeed02e2df058d090def4fba6955c97603acf45e3a /openbox/screen.c
parent7059cde13b2da3eb3ec07b48fd643de76425fb21 (diff)
don't fallback when a window is hidden right away, it's redundant, we'll get a focusout for the window after the unmapnotify anyways.
show new windows when switching desktops before hiding the old windows.
Diffstat (limited to 'openbox/screen.c')
-rw-r--r--openbox/screen.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/openbox/screen.c b/openbox/screen.c
index 298a0b22..1705fa89 100644
--- a/openbox/screen.c
+++ b/openbox/screen.c
@@ -435,11 +435,11 @@ void screen_set_desktop(guint num)
/* show windows before hiding the rest to lessen the enter/leave events */
- /* show windows from top to bottom */
+ /* show/hide windows from top to bottom */
for (it = stacking_list; it; it = g_list_next(it)) {
if (WINDOW_IS_CLIENT(it->data)) {
ObClient *c = it->data;
- client_showhide(c);
+ client_show(c);
}
}
@@ -447,7 +447,7 @@ void screen_set_desktop(guint num)
for (it = g_list_last(stacking_list); it; it = g_list_previous(it)) {
if (WINDOW_IS_CLIENT(it->data)) {
ObClient *c = it->data;
- client_showhide(c);
+ client_hide(c);
}
}
@@ -458,9 +458,10 @@ void screen_set_desktop(guint num)
frame_adjust_focus(focus_hilite->frame, TRUE);
/*!
- When this focus_client check is not used, you can end up with races,
- as demonstrated with gnome-panel, sometmies the window you click on
- another desktop ends up losing focus cuz of the focus change here.
+ When this focus_client check is not used, you can end up with
+ races, as demonstrated with gnome-panel, sometimes the window
+ you click on another desktop ends up losing focus cuz of the
+ focus change here.
*/
/*if (!focus_client)*/
client_focus(focus_hilite);