mirror of
https://github.com/brl/mutter.git
synced 2025-08-04 07:34:53 +00:00
Yeah I know maximization is broken, I'm too tired to fix it. Probably
2002-06-08 Havoc Pennington <hp@pobox.com> Yeah I know maximization is broken, I'm too tired to fix it. Probably because of the change to update_struts() that was supposed to fix the 100% CPU bug. * src/place.c (meta_window_place): don't run docks and things through the placement algorithm. Thought it might fix metacity-window-demo but it didn't. * src/window.c (constrain_size): only get work area when needed (meta_window_new): init the do_not_cover field
This commit is contained in:

committed by
Havoc Pennington

parent
2b780e5486
commit
e694f07144
@@ -400,6 +400,7 @@ meta_window_new (MetaDisplay *display, Window xwindow,
|
||||
window->type_atom = None;
|
||||
|
||||
window->has_struts = FALSE;
|
||||
window->do_not_cover = FALSE;
|
||||
window->left_strut = 0;
|
||||
window->right_strut = 0;
|
||||
window->top_strut = 0;
|
||||
@@ -4977,13 +4978,10 @@ constrain_size (MetaWindow *window,
|
||||
int delta;
|
||||
double min_aspect, max_aspect;
|
||||
int minw, minh, maxw, maxh, fullw, fullh;
|
||||
MetaRectangle work_area;
|
||||
|
||||
/* frame member variables should NEVER be used in here */
|
||||
|
||||
#define FLOOR(value, base) ( ((int) ((value) / (base))) * (base) )
|
||||
|
||||
meta_window_get_work_area (window, TRUE, &work_area);
|
||||
|
||||
/* Get the allowed size ranges, considering maximized, etc. */
|
||||
if (window->fullscreen)
|
||||
@@ -5006,6 +5004,10 @@ constrain_size (MetaWindow *window,
|
||||
}
|
||||
else
|
||||
{
|
||||
MetaRectangle work_area;
|
||||
|
||||
meta_window_get_work_area (window, TRUE, &work_area);
|
||||
|
||||
fullw = work_area.width;
|
||||
fullh = work_area.height;
|
||||
}
|
||||
|
Reference in New Issue
Block a user