From adc5675823de8e3bbe94a1419b04103c6f845dad Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 14 Mar 2007 15:51:21 +0000 Subject: oh, 2 things in this commit.. 1) THIS ONE IS IMPORTANT: don't set client->iconfied if the window is not actually going to be allowed to iconify. heh! 2) changes to focus fallback to avoid crashing and to avoid losing focus all at the same time. --- openbox/screen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'openbox/screen.c') diff --git a/openbox/screen.c b/openbox/screen.c index dcb9cd13..0d4f2fb3 100644 --- a/openbox/screen.c +++ b/openbox/screen.c @@ -463,7 +463,7 @@ void screen_set_desktop(guint num) event_ignore_queued_enters(); - focus_hilite = focus_fallback_target(OB_FOCUS_FALLBACK_NOFOCUS); + focus_hilite = focus_fallback_target(TRUE); if (focus_hilite) { frame_adjust_focus(focus_hilite->frame, TRUE); @@ -893,7 +893,7 @@ void screen_show_desktop(gboolean show) client_validate(it->data) && client_focus(it->data)) break; } else { - focus_fallback(OB_FOCUS_FALLBACK_NOFOCUS); + focus_fallback(TRUE); } show = !!show; /* make it boolean */ -- cgit v1.2.3