summaryrefslogtreecommitdiff
path: root/src/place.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2002-05-01 03:23:46 +0000
committerHavoc Pennington <hp@src.gnome.org>2002-05-01 03:23:46 +0000
commit03481ae2d08f5ad0d69f13bd43863db6f91de599 (patch)
treec407ccd77a9e57b0e600f383f4c248186573488c /src/place.c
parent17b4eab4d44b34134f8b9f89fff4c4411205fdc9 (diff)
downloadmetacity-03481ae2d08f5ad0d69f13bd43863db6f91de599.tar.gz
metacity-03481ae2d08f5ad0d69f13bd43863db6f91de599.tar.bz2
don't try to decorate toolbars.
2002-04-30 Havoc Pennington <hp@pobox.com> * src/window.c (recalc_window_features): don't try to decorate toolbars. * src/tools/metacity-window-demo.c: add menu and toolbar tests * src/place.c (meta_window_place): only dialogs should be centered over parent, not anything with transient for set. * src/window.c (meta_window_configure_request): become more fascist about window positioning if workarounds are disabled, and less fascist if they are enabled. * src/metacity.schemas: add a "disable_workarounds" option. Kind of crack-smoking. But we just can't get all applications fixed. And I need no-workarounds mode to monitor which apps are broken and what needs fixing in specs. * src/window.c (meta_window_configure_request): always allow windows to resize themselves * src/keybindings.c (reload_modmap): don't filter out Mode_switch, apparently some people bind window manager shortcuts to that.
Diffstat (limited to 'src/place.c')
-rw-r--r--src/place.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/place.c b/src/place.c
index ae255f7..ade971b 100644
--- a/src/place.c
+++ b/src/place.c
@@ -220,7 +220,9 @@ meta_window_place (MetaWindow *window,
* put it at 1/5 down and horizontally centered
*/
- if (window->xtransient_for != None)
+ if ((window->type == META_WINDOW_DIALOG ||
+ window->type == META_WINDOW_MODAL_DIALOG) &&
+ window->xtransient_for != None)
{
/* Center horizontally, at top of parent vertically */
@@ -252,6 +254,10 @@ meta_window_place (MetaWindow *window,
}
}
+ /* FIXME UTILITY with transient set should be stacked up
+ * on the sides of the parent window or something.
+ */
+
if (window->type == META_WINDOW_DIALOG ||
window->type == META_WINDOW_MODAL_DIALOG ||
window->type == META_WINDOW_SPLASHSCREEN)