diff options
author | Giovanni Campagna <gcampagn@redhat.com> | 2013-08-26 14:47:10 +0200 |
---|---|---|
committer | Giovanni Campagna <gcampagn@redhat.com> | 2013-08-27 09:57:06 +0200 |
commit | f09b9573f0246fc45e3ab79c63ccb1da0867324f (patch) | |
tree | abf499a94c3c8cf671e9a06d556ead4f399bd6af | |
parent | 3d3ae40f79ddde5daad43f7dfc46c1560d398ca1 (diff) | |
download | mutter-f09b9573f0246fc45e3ab79c63ccb1da0867324f.tar.gz |
window: ignore skip-taskbar hint on parentless dialogs
Dialogs that don't have a parent should not be skip-taskbar,
otherwise they get lost and there is no way to recover them
(because they're not autoraised when activating the parent),
but toolkits and applications set the hint anyway.
https://bugzilla.gnome.org/show_bug.cgi?id=673399
-rw-r--r-- | src/core/window.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/window.c b/src/core/window.c index aa48551a2..1cafc5ba5 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -8559,10 +8559,13 @@ recalc_window_features (MetaWindow *window) case META_WINDOW_DIALOG: case META_WINDOW_MODAL_DIALOG: - /* only skip taskbar if we have a real transient parent */ + /* only skip taskbar if we have a real transient parent + (and ignore the application hints) */ if (window->xtransient_for != None && window->xtransient_for != window->screen->xroot) window->skip_taskbar = TRUE; + else + window->skip_taskbar = FALSE; break; case META_WINDOW_NORMAL: |