1
0
Fork 0

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
This commit is contained in:
Havoc Pennington 2001-10-15 04:39:05 +00:00 committed by Havoc Pennington
parent 1c1f4d7c93
commit 01a5b5762d
2 changed files with 9 additions and 3 deletions

View file

@ -1,3 +1,9 @@
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
2001-10-15 Havoc Pennington <hp@pobox.com>
* src/main.c (meta_restart): add a restart feature, for debugging

View file

@ -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);