diff options
Diffstat (limited to 'src/core/constraints.c')
-rw-r--r-- | src/core/constraints.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/constraints.c b/src/core/constraints.c index 68cf5ae1..656d1529 100644 --- a/src/core/constraints.c +++ b/src/core/constraints.c @@ -748,8 +748,10 @@ constrain_maximization (MetaWindow *window, return TRUE; /* Calculate target_size = maximized size of (window + frame) */ - if (window->maximized_horizontally && window->maximized_vertically) - target_size = info->work_area_xinerama; + if (META_WINDOW_MAXIMIZED (window)) + { + target_size = info->work_area_xinerama; + } else { /* Amount of maximization possible in a single direction depends |