From 7dc793c3be5cf4b5ecdde469a6830a447b30a77c Mon Sep 17 00:00:00 2001 From: Rob Adams Date: Sat, 16 Aug 2003 01:05:37 +0000 Subject: [PATCH] fix but with maximizing/fullscreening windows --- src/constraints.c | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/src/constraints.c b/src/constraints.c index 781945a93..5509089c8 100644 --- a/src/constraints.c +++ b/src/constraints.c @@ -1358,9 +1358,7 @@ meta_window_constrain (MetaWindow *window, { int center_x; - center_x = info.xinerama->x_origin + (info.xinerama->width / 2); - center_x -= OUTER_WIDTH (current) / 2; - + current = *new; constrain_resize_bottom (window, &info, ¤t, (info.xinerama->height - OUTER_HEIGHT (current)), new); @@ -1373,19 +1371,12 @@ meta_window_constrain (MetaWindow *window, current = *new; constrain_move (window, &info, ¤t, - center_x - current.x + info.fgeom.left_width, + info.xinerama->x_origin - current.x + info.fgeom.left_width, info.xinerama->y_origin - current.y + info.fgeom.top_height, new); - - current = *new; } else if (window->maximized) { - int center_x; - - center_x = info.work_area_xinerama.x + (info.work_area_xinerama.width / 2); - center_x -= OUTER_WIDTH (current) / 2; - constrain_resize_bottom (window, &info, ¤t, (info.work_area_xinerama.height - OUTER_HEIGHT (current)), new); @@ -1398,7 +1389,7 @@ meta_window_constrain (MetaWindow *window, current = *new; constrain_move (window, &info, ¤t, - center_x - current.x + info.fgeom.left_width, + info.work_area_xinerama.x - current.x + info.fgeom.left_width, info.work_area_xinerama.y - current.y + info.fgeom.top_height, new);