summaryrefslogtreecommitdiff
path: root/openbox/screen.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-10-08 18:28:51 +0000
committerDana Jansens <danakj@orodu.net>2003-10-08 18:28:51 +0000
commit735ee9368918bbe067ac9c016bd7290290fe85fa (patch)
tree9383d92e3964ff26cdcbdff8cb9ca0f1227c0d9d /openbox/screen.c
parentfe3e73f1902cdf4f5173e7e40b48daff5ebd684f (diff)
set focus_hilite when switching desktops and hjilitin a window which isnt focused yet
Diffstat (limited to 'openbox/screen.c')
-rw-r--r--openbox/screen.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/openbox/screen.c b/openbox/screen.c
index f7c71abe..d2fe9c5b 100644
--- a/openbox/screen.c
+++ b/openbox/screen.c
@@ -418,7 +418,6 @@ void screen_set_desktop(guint num)
{
GList *it;
guint old;
- ObClient *target;
g_assert(num < screen_num_desktops);
@@ -458,17 +457,17 @@ void screen_set_desktop(guint num)
event_ignore_queued_enters();
- target = focus_fallback_target(OB_FOCUS_FALLBACK_NOFOCUS);
- if (target) {
- frame_adjust_focus(target->frame, TRUE);
+ focus_hilite = focus_fallback_target(OB_FOCUS_FALLBACK_NOFOCUS);
+ if (focus_hilite) {
+ 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.
*/
- if (!focus_client)
- client_focus(target);
+ /*if (!focus_client)*/
+ client_focus(focus_hilite);
}
}