From a644753073d75ed32ec11b34f37615ee0c36ccc1 Mon Sep 17 00:00:00 2001 From: Rob Adams Date: Thu, 21 Aug 2003 04:27:11 +0000 Subject: [PATCH] do northwest resize when maximizing and fullscreening to avoid potential 2003-08-20 Rob Adams * src/constraints.c (meta_window_constrain): do northwest resize when maximizing and fullscreening to avoid potential "off-by-one" problems. --- ChangeLog | 6 ++++++ src/constraints.c | 12 ++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 151ef1de8..3de68ab68 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2003-08-20 Rob Adams + + * src/constraints.c (meta_window_constrain): do northwest resize + when maximizing and fullscreening to avoid potential "off-by-one" + problems. + 2003-08-19 Rob Adams * src/stack.c (get_standalone_layer): put windows with diff --git a/src/constraints.c b/src/constraints.c index f86e47823..2bb295f19 100644 --- a/src/constraints.c +++ b/src/constraints.c @@ -1371,9 +1371,9 @@ meta_window_constrain (MetaWindow *window, current = *new; - constrain_resize_hcenter (window, &info, ¤t, - (info.xinerama->width - OUTER_WIDTH (current)) / 2, - new); + constrain_resize_right (window, &info, ¤t, + info.xinerama->width - OUTER_WIDTH (current), + new); current = *new; constrain_move (window, &info, ¤t, @@ -1389,9 +1389,9 @@ meta_window_constrain (MetaWindow *window, current = *new; - constrain_resize_hcenter (window, &info, ¤t, - (info.work_area_xinerama.width - OUTER_WIDTH (current)) / 2, - new); + constrain_resize_right (window, &info, ¤t, + info.work_area_xinerama.width - OUTER_WIDTH (current), + new); current = *new; constrain_move (window, &info, ¤t,