[mutter] window: only attach dialogs to NORMAL, DIALOG, and MODAL_DIALOG windows
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] window: only attach dialogs to NORMAL, DIALOG, and MODAL_DIALOG windows
- Date: Sat, 27 Aug 2011 17:13:52 +0000 (UTC)
commit 2be1574e5504094848a75cb00d59a49d944edffc
Author: Dan Winship <danw gnome org>
Date: Fri Jul 22 12:34:10 2011 -0400
window: only attach dialogs to NORMAL, DIALOG, and MODAL_DIALOG windows
Attaching dialogs to unusual windows (like the desktop) looks bad, so
don't do it.
https://bugzilla.gnome.org/show_bug.cgi?id=646761
src/core/window.c | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index 0d19855..fc19ff2 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -682,7 +682,16 @@ meta_window_should_attach_to_parent (MetaWindow *window)
if (!parent)
return FALSE;
- return TRUE;
+ switch (parent->type)
+ {
+ case META_WINDOW_NORMAL:
+ case META_WINDOW_DIALOG:
+ case META_WINDOW_MODAL_DIALOG:
+ return TRUE;
+
+ default:
+ return FALSE;
+ }
}
MetaWindow*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]