summaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2003-01-09 23:28:01 +0000
committerHavoc Pennington <hp@src.gnome.org>2003-01-09 23:28:01 +0000
commit5d2f3077357c4bbea41e67d11c769cad1c0e33eb (patch)
tree4b0c7f6fc2e74f138ae4843361809582312d413c /src/window.c
parent70bd23278bc3d5d7d7cd202ee5ff659c32bba0a5 (diff)
downloadmetacity-5d2f3077357c4bbea41e67d11c769cad1c0e33eb.tar.gz
argh, we were making all dialogs skip taskbar; when did that get added.
2003-01-09 Havoc Pennington <hp@redhat.com> * 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.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c
index 8c4c626c..038e4118 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: