diff options
author | Elijah Newren <newren@gmail.com> | 2005-11-21 21:35:31 +0000 |
---|---|---|
committer | Elijah Newren <newren@src.gnome.org> | 2005-11-21 21:35:31 +0000 |
commit | 3426844ad5e600420ece01e496c7bd9481dcbe67 (patch) | |
tree | 6c8261d297ec77ccc62387e684f30fb0dd1f20ba | |
parent | a3902fb922e9f6c3705f8f0b5526a2c9773a21d4 (diff) | |
download | metacity-3426844ad5e600420ece01e496c7bd9481dcbe67.tar.gz |
When updating the xinerama due to placement, update which maximal/spanning
2005-11-21 Elijah Newren <newren@gmail.com>
* src/constraints.c (place_window_if_needed): When updating the
xinerama due to placement, update which maximal/spanning rect set
to use as well
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | src/constraints.c | 5 |
2 files changed, 12 insertions, 1 deletions
@@ -1,11 +1,17 @@ 2005-11-21 Elijah Newren <newren@gmail.com> + * 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 <newren@gmail.com> + * doc/strut-and-related-updating.txt: It took me a little while to figure out how struts & workareas are updated and to learn what 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 <newren@gmail.com> diff --git a/src/constraints.c b/src/constraints.c index 51941aa3..7870b3f2 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; |