From 3426844ad5e600420ece01e496c7bd9481dcbe67 Mon Sep 17 00:00:00 2001 From: Elijah Newren Date: Mon, 21 Nov 2005 21:35:31 +0000 Subject: [PATCH] When updating the xinerama due to placement, update which maximal/spanning 2005-11-21 Elijah Newren * src/constraints.c (place_window_if_needed): When updating the xinerama due to placement, update which maximal/spanning rect set to use as well --- ChangeLog | 8 +++++++- src/constraints.c | 5 +++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ac457ac84..663332138 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-11-21 Elijah Newren + + * src/constraints.c (place_window_if_needed): When updating the + xinerama due to placement, update which maximal/spanning rect set + to use as well + 2005-11-21 Elijah Newren * doc/strut-and-related-updating.txt: It took me a little while to @@ -5,7 +11,7 @@ all the related functions were used for so I thought I'd clean up my notes and make them available. This will probably be more useful now since regions and edges are also computed and stored at - the some time as the workareas. + the same time as the workareas. 2005-11-20 Elijah Newren diff --git a/src/constraints.c b/src/constraints.c index 51941aa33..7870b3f21 100644 --- a/src/constraints.c +++ b/src/constraints.c @@ -441,6 +441,11 @@ place_window_if_needed(MetaWindow *window, meta_window_get_work_area_for_xinerama (window, xinerama_info->number, &info->work_area_xinerama); + MetaWorkspace *cur_workspace = window->screen->active_workspace; + info->usable_xinerama_region = + meta_workspace_get_onxinerama_region (cur_workspace, + xinerama_info->number); + info->current.x = placed_rect.x; info->current.y = placed_rect.y;