if the window has a modal transient which is being unmanaged, don't focus

2005-06-02  Elijah Newren  <newren@gmail.com>

	* src/window.c (meta_window_focus): if the window has a modal
	transient which is being unmanaged, don't focus it.  Fixes the
	Metacity issue reported in #305362.
This commit is contained in:
Elijah Newren 2005-06-02 15:24:40 +00:00 committed by Elijah Newren
parent d5eaa386dd
commit 90dc2116ad
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2005-06-02 Elijah Newren <newren@gmail.com>
* src/window.c (meta_window_focus): if the window has a modal
transient which is being unmanaged, don't focus it. Fixes the
Metacity issue reported in #305362.
2005-05-30 Ray Strode <rstrode@redhat.com> 2005-05-30 Ray Strode <rstrode@redhat.com>
Bug 305564 again. Bug 305564 again.

View File

@ -3519,7 +3519,8 @@ meta_window_focus (MetaWindow *window,
} }
modal_transient = get_modal_transient (window); modal_transient = get_modal_transient (window);
if (modal_transient != NULL) if (modal_transient != NULL &&
!modal_transient->unmanaging)
{ {
meta_topic (META_DEBUG_FOCUS, meta_topic (META_DEBUG_FOCUS,
"%s has %s as a modal transient, so focusing it instead.\n", "%s has %s as a modal transient, so focusing it instead.\n",