allow dialogs to steal focus from panels/desktop

2002-06-11  Havoc Pennington  <hp@redhat.com>

	* src/window.c (meta_window_show): allow dialogs to steal focus
	from panels/desktop
This commit is contained in:
Havoc Pennington 2002-06-11 22:30:30 +00:00 committed by Havoc Pennington
parent 702eab3a6c
commit 00e572800c
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-06-11 Havoc Pennington <hp@redhat.com>
* src/window.c (meta_window_show): allow dialogs to steal focus
from panels/desktop
2002-06-10 Jayaraj Rajappan <jayaraj.rajappan@wipro.com>
* src/fixedtip.c: include <config.h> - fix for #83960

View File

@ -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;