summaryrefslogtreecommitdiff
path: root/src/constraints.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/constraints.c')
-rw-r--r--src/constraints.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/constraints.c b/src/constraints.c
index f461d929..816b40b0 100644
--- a/src/constraints.c
+++ b/src/constraints.c
@@ -383,8 +383,11 @@ setup_constraint_info (ConstraintInfo *info,
info->entire_xinerama = xinerama_info->rect;
MetaWorkspace *cur_workspace = window->screen->active_workspace;
- info->usable_screen_region = cur_workspace->screen_region;
- info->usable_xinerama_region = cur_workspace->xinerama_region[xinerama_info->number];
+ info->usable_screen_region =
+ meta_workspace_get_onscreen_region (cur_workspace);
+ info->usable_xinerama_region =
+ meta_workspace_get_onxinerama_region (cur_workspace,
+ xinerama_info->number);
/* Log all this information for debugging */
meta_topic (META_DEBUG_GEOMETRY,