mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 03:22:04 +00:00
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:
parent
1c1f4d7c93
commit
01a5b5762d
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user