summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2001-10-15 04:39:05 +0000
committerHavoc Pennington <hp@src.gnome.org>2001-10-15 04:39:05 +0000
commit01a5b5762d0147a40484050bc970cd73b4e9b010 (patch)
treeae8c910048cb09e300b46684228a023bb7f62550 /src
parent1c1f4d7c938b9226310f405db4b589f56ce171c2 (diff)
downloadmetacity-01a5b5762d0147a40484050bc970cd73b4e9b010.tar.gz
metacity-01a5b5762d0147a40484050bc970cd73b4e9b010.tar.bz2
use queried attributes to check whether window should be initially
2001-10-15 Havoc Pennington <hp@pobox.com> * src/window.c (meta_window_new): use queried attributes to check whether window should be initially maximized, rather than window rect
Diffstat (limited to 'src')
-rw-r--r--src/window.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/window.c b/src/window.c
index ab642da..ea0ed14 100644
--- a/src/window.c
+++ b/src/window.c
@@ -362,9 +362,9 @@ meta_window_new (MetaDisplay *display, Window xwindow,
* assume fullscreen state instead once we have that state...
*/
if (!window->maximized &&
- window->rect.x == 0 && window->rect.y == 0 &&
- window->rect.width == window->screen->width &&
- window->rect.height == window->screen->height)
+ attrs.x == 0 && attrs.y == 0 &&
+ attrs.width == window->screen->width &&
+ attrs.height == window->screen->height)
window->maximized = TRUE;
update_mwm_hints (window);