From 3ff5e8dff484c939227c158b2ef2975e4fc68264 Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Mon, 20 Jun 2016 13:43:05 -0500 Subject: [PATCH] Track wayland outputs for zones --- src/bin/e_comp_wl.c | 5 +++++ src/bin/e_zone.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c index 819a26d0f..7032ff70f 100644 --- a/src/bin/e_comp_wl.c +++ b/src/bin/e_comp_wl.c @@ -2900,11 +2900,14 @@ e_comp_wl_output_init(const char *id, const char *make, const char *model, E_Comp_Wl_Output *output; Eina_List *l2; struct wl_resource *resource; + E_Zone *zone; /* retrieve named output; or create it if it doesn't exist */ output = _e_comp_wl_output_get(e_comp_wl->outputs, id); if (!output) { + zone = e_zone_for_id_get(id); + if (!zone) return EINA_FALSE; if (!(output = E_NEW(E_Comp_Wl_Output, 1))) return EINA_FALSE; if (id) output->id = eina_stringshare_add(id); @@ -2919,6 +2922,8 @@ e_comp_wl_output_init(const char *id, const char *make, const char *model, output->resources = NULL; output->scale = e_scale; + + zone->output = output; } /* update the output details */ diff --git a/src/bin/e_zone.h b/src/bin/e_zone.h index 1741659d1..25d98f3b3 100644 --- a/src/bin/e_zone.h +++ b/src/bin/e_zone.h @@ -87,6 +87,8 @@ struct _E_Zone int id; + void *output; + Eina_Rectangle useful_geometry[2]; char *randr2_id; // same id we get from randr2 so look it up there Eina_Bool useful_geometry_changed : 1;