mirror of
https://github.com/brl/mutter.git
synced 2024-11-11 00:26:40 -05:00
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
This commit is contained in:
parent
3d3ae40f79
commit
f09b9573f0
@ -8559,10 +8559,13 @@ recalc_window_features (MetaWindow *window)
|
|||||||
|
|
||||||
case META_WINDOW_DIALOG:
|
case META_WINDOW_DIALOG:
|
||||||
case META_WINDOW_MODAL_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 &&
|
if (window->xtransient_for != None &&
|
||||||
window->xtransient_for != window->screen->xroot)
|
window->xtransient_for != window->screen->xroot)
|
||||||
window->skip_taskbar = TRUE;
|
window->skip_taskbar = TRUE;
|
||||||
|
else
|
||||||
|
window->skip_taskbar = FALSE;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case META_WINDOW_NORMAL:
|
case META_WINDOW_NORMAL:
|
||||||
|
Loading…
Reference in New Issue
Block a user