From 01a5b5762d0147a40484050bc970cd73b4e9b010 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Mon, 15 Oct 2001 04:39:05 +0000 Subject: [PATCH] use queried attributes to check whether window should be initially 2001-10-15 Havoc Pennington * src/window.c (meta_window_new): use queried attributes to check whether window should be initially maximized, rather than window rect --- ChangeLog | 6 ++++++ src/window.c | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index ffb2f6bc4..832254da7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-10-15 Havoc Pennington + + * src/window.c (meta_window_new): use queried attributes to check + whether window should be initially maximized, rather than window + rect + 2001-10-15 Havoc Pennington * src/main.c (meta_restart): add a restart feature, for debugging diff --git a/src/window.c b/src/window.c index ab642daf6..ea0ed14da 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);