forked from enlightenment/enlightenment
Track wayland outputs for zones
This commit is contained in:
parent
fc37423c2e
commit
3ff5e8dff4
|
@ -2900,11 +2900,14 @@ e_comp_wl_output_init(const char *id, const char *make, const char *model,
|
||||||
E_Comp_Wl_Output *output;
|
E_Comp_Wl_Output *output;
|
||||||
Eina_List *l2;
|
Eina_List *l2;
|
||||||
struct wl_resource *resource;
|
struct wl_resource *resource;
|
||||||
|
E_Zone *zone;
|
||||||
|
|
||||||
/* retrieve named output; or create it if it doesn't exist */
|
/* retrieve named output; or create it if it doesn't exist */
|
||||||
output = _e_comp_wl_output_get(e_comp_wl->outputs, id);
|
output = _e_comp_wl_output_get(e_comp_wl->outputs, id);
|
||||||
if (!output)
|
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 (!(output = E_NEW(E_Comp_Wl_Output, 1))) return EINA_FALSE;
|
||||||
|
|
||||||
if (id) output->id = eina_stringshare_add(id);
|
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->resources = NULL;
|
||||||
output->scale = e_scale;
|
output->scale = e_scale;
|
||||||
|
|
||||||
|
zone->output = output;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* update the output details */
|
/* update the output details */
|
||||||
|
|
|
@ -87,6 +87,8 @@ struct _E_Zone
|
||||||
|
|
||||||
int id;
|
int id;
|
||||||
|
|
||||||
|
void *output;
|
||||||
|
|
||||||
Eina_Rectangle useful_geometry[2];
|
Eina_Rectangle useful_geometry[2];
|
||||||
char *randr2_id; // same id we get from randr2 so look it up there
|
char *randr2_id; // same id we get from randr2 so look it up there
|
||||||
Eina_Bool useful_geometry_changed : 1;
|
Eina_Bool useful_geometry_changed : 1;
|
||||||
|
|
Loading…
Reference in New Issue