forked from enlightenment/enlightenment
e randr - fix crash when no zones found
This commit is contained in:
parent
839d7f4dc2
commit
752360e0c0
|
@ -432,7 +432,8 @@ _config_update(E_Randr2 *r, E_Config_Randr2 *cfg, Eina_Bool update_only)
|
||||||
{
|
{
|
||||||
/* find right-most screen */
|
/* find right-most screen */
|
||||||
E_Zone *zone = eina_list_last_data_get(e_comp->zones);
|
E_Zone *zone = eina_list_last_data_get(e_comp->zones);
|
||||||
eina_stringshare_replace(&cs->rel_to, zone->randr2_id);
|
if (zone)
|
||||||
|
eina_stringshare_replace(&cs->rel_to, zone->randr2_id);
|
||||||
}
|
}
|
||||||
cs->rel_align = 0;
|
cs->rel_align = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue