summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2016-06-20 14:05:58 -0500
committerDerek Foreman <derekf@osg.samsung.com>2016-06-21 12:33:49 -0500
commit11cb74a288628b6c5b96835d79ad087952a61cce (patch)
tree84e80b54921c290af449563f7010ee5d8d9321fc
parent3ff5e8dff484c939227c158b2ef2975e4fc68264 (diff)
downloadenlightenment-11cb74a288628b6c5b96835d79ad087952a61cce.tar.gz
Track X outputs for zones
We needed this for wayland, so we add the same tracking for X to be consistent - though we have no users yet.
-rw-r--r--src/bin/e_comp_x_randr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bin/e_comp_x_randr.c b/src/bin/e_comp_x_randr.c
index c01bbf8cdf..0cea2a6179 100644
--- a/src/bin/e_comp_x_randr.c
+++ b/src/bin/e_comp_x_randr.c
@@ -646,6 +646,7 @@ e_comp_x_randr_create(void)
{
Ecore_X_Randr_Crtc *crtcs = NULL;
Ecore_X_Randr_Output *outputs = NULL;
+ E_Zone *zone;
int crtcs_num = 0, outputs_num = 0, i, j, k;
Ecore_X_Window root = ecore_x_window_root_first_get();
E_Randr2 *r = calloc(1, sizeof(E_Randr2));
@@ -836,6 +837,8 @@ e_comp_x_randr_create(void)
ecore_x_randr_crtc_info_free(info);
}
}
+ zone = e_zone_for_id_get(s->id);
+ if (zone) zone->output = s;
r->screens = eina_list_append(r->screens, s);
}