From 00e572800c57b3049dec0f20059c4df99abb564f Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Tue, 11 Jun 2002 22:30:30 +0000 Subject: [PATCH] allow dialogs to steal focus from panels/desktop 2002-06-11 Havoc Pennington * src/window.c (meta_window_show): allow dialogs to steal focus from panels/desktop --- ChangeLog | 5 +++++ src/window.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7b2901694..56c7441eb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-06-11 Havoc Pennington + + * src/window.c (meta_window_show): allow dialogs to steal focus + from panels/desktop + 2002-06-10 Jayaraj Rajappan * src/fixedtip.c: include - fix for #83960 diff --git a/src/window.c b/src/window.c index 299e97dd1..6276c34a0 100644 --- a/src/window.c +++ b/src/window.c @@ -1347,7 +1347,9 @@ meta_window_show (MetaWindow *window) if (window->display->focus_window == NULL || (window->display->focus_window && meta_window_is_ancestor_of_transient (window->display->focus_window, - window))) + window)) || + (window->display->focus_window->type == META_WINDOW_DOCK || + window->display->focus_window->type == META_WINDOW_DESKTOP)) meta_window_focus (window, meta_display_get_current_time (window->display)); break;