summaryrefslogtreecommitdiff
path: root/src/place.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2002-06-08 06:29:19 +0000
committerHavoc Pennington <hp@src.gnome.org>2002-06-08 06:29:19 +0000
commite694f071443fb80255d80103f7d50f14fb4f0a93 (patch)
tree629067f315046a577b62d9ee1d4b95da58b25106 /src/place.c
parent2b780e5486221f5b33017b09de6ae7228252e071 (diff)
downloadmetacity-e694f071443fb80255d80103f7d50f14fb4f0a93.tar.gz
Yeah I know maximization is broken, I'm too tired to fix it. Probably
2002-06-08 Havoc Pennington <hp@pobox.com> Yeah I know maximization is broken, I'm too tired to fix it. Probably because of the change to update_struts() that was supposed to fix the 100% CPU bug. * src/place.c (meta_window_place): don't run docks and things through the placement algorithm. Thought it might fix metacity-window-demo but it didn't. * src/window.c (constrain_size): only get work area when needed (meta_window_new): init the do_not_cover field
Diffstat (limited to 'src/place.c')
-rw-r--r--src/place.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/place.c b/src/place.c
index f8ea82b4..b3aaac6b 100644
--- a/src/place.c
+++ b/src/place.c
@@ -308,6 +308,27 @@ meta_window_place (MetaWindow *window,
goto done;
}
}
+
+ switch (window->type)
+ {
+ /* Run placement algorithm on these. */
+ case META_WINDOW_NORMAL:
+ case META_WINDOW_DIALOG:
+ case META_WINDOW_MODAL_DIALOG:
+ case META_WINDOW_SPLASHSCREEN:
+ break;
+
+ /* Assume the app knows best how to place these, no placement
+ * algorithm ever (other than "leave them as-is")
+ */
+ case META_WINDOW_DESKTOP:
+ case META_WINDOW_DOCK:
+ case META_WINDOW_TOOLBAR:
+ case META_WINDOW_MENU:
+ case META_WINDOW_UTILITY:
+ goto done;
+ break;
+ }
if ((window->type == META_WINDOW_DIALOG ||
window->type == META_WINDOW_MODAL_DIALOG) &&