summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorElijah Newren <newren gmail com>2006-08-08 00:36:04 +0000
committerElijah Newren <newren@src.gnome.org>2006-08-08 00:36:04 +0000
commit9fe845581b383e64d8c323a0c47f913ea2e04d2f (patch)
tree0d6531498678a6491db21ce0b2c2810299cb586b /src
parentfc23f9b22fbccfb9e03a2ca5edbf3047f46c9c9a (diff)
downloadmetacity-9fe845581b383e64d8c323a0c47f913ea2e04d2f.tar.gz
patch from Stéphane Rosi to allow moving maximized windows between
2006-08-07 Elijah Newren <newren gmail com> * src/constraints.c (setup_constraint_info): patch from Stéphane Rosi to allow moving maximized windows between xineramas again. #323820
Diffstat (limited to 'src')
-rw-r--r--src/constraints.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/constraints.c b/src/constraints.c
index 8eb2d83d..1638203f 100644
--- a/src/constraints.c
+++ b/src/constraints.c
@@ -385,10 +385,11 @@ setup_constraint_info (ConstraintInfo *info,
if (!info->is_user_action)
info->fixed_directions = 0;
- meta_window_get_work_area_current_xinerama (window, &info->work_area_xinerama);
-
xinerama_info =
- meta_screen_get_xinerama_for_window (window->screen, window);
+ meta_screen_get_xinerama_for_rect (window->screen, &info->current);
+ meta_window_get_work_area_for_xinerama (window,
+ xinerama_info->number,
+ &info->work_area_xinerama);
info->entire_xinerama = xinerama_info->rect;
cur_workspace = window->screen->active_workspace;