From 5d2f3077357c4bbea41e67d11c769cad1c0e33eb Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Thu, 9 Jan 2003 23:28:01 +0000 Subject: [PATCH] argh, we were making all dialogs skip taskbar; when did that get added. 2003-01-09 Havoc Pennington * src/window.c (recalc_window_features): argh, we were making all dialogs skip taskbar; when did that get added. Fix to match libwnck, only skip taskbar when the dialog is transient for some other app window. --- ChangeLog | 7 +++++++ src/window.c | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index cc880e9f5..be8c11a2a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2003-01-09 Havoc Pennington + + * src/window.c (recalc_window_features): argh, we were making all + dialogs skip taskbar; when did that get added. Fix to match + libwnck, only skip taskbar when the dialog is transient for some + other app window. + 2003-01-09 Havoc Pennington * src/metacity.schemas.in: change Windows+click back to Alt+click, diff --git a/src/window.c b/src/window.c index 8c4c626cf..038e4118d 100644 --- a/src/window.c +++ b/src/window.c @@ -5568,7 +5568,10 @@ recalc_window_features (MetaWindow *window) case META_WINDOW_DIALOG: case META_WINDOW_MODAL_DIALOG: - window->skip_taskbar = TRUE; + /* only skip taskbar if we have a real transient parent */ + if (window->xtransient_for != None && + window->xtransient_for != window->screen->xroot) + window->skip_taskbar = TRUE; break; case META_WINDOW_NORMAL: