Initialize size_hints on window creation using code shared with size_hints property reload

This commit is contained in:
Keith Packard
2003-04-26 17:40:32 +00:00
parent 75fa56391d
commit 2eec8daff5
3 changed files with 213 additions and 196 deletions

View File

@ -334,14 +334,14 @@ meta_window_new (MetaDisplay *display,
window->rect.width = attrs.width;
window->rect.height = attrs.height;
window->size_hints.flags = 0;
/* And border width, size_hints are the "request" */
window->border_width = attrs.border_width;
window->size_hints.x = attrs.x;
window->size_hints.y = attrs.y;
window->size_hints.width = attrs.width;
window->size_hints.height = attrs.height;
/* initialize the remaining size_hints as if size_hints.flags were zero */
meta_set_normal_hints (window, NULL);
/* And this is our unmaximized size */
window->saved_rect = window->rect;