aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-07-18 02:19:12 +0900
committerMike Blumenkrantz <zmike@samsung.com>2018-08-02 10:02:45 -0400
commit5347935700586f05a0a5558cfbf47c13c4212c6c (patch)
tree407db9a9e65269e2b8f6cb579c7d0e495ef13201
parentavoid adding render updates for deleted clients after animation completes (diff)
downloadenlightenment-5347935700586f05a0a5558cfbf47c13c4212c6c.tar.gz
e randr - fix crash when no zones found
-rw-r--r--src/bin/e_randr2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/e_randr2.c b/src/bin/e_randr2.c
index fc0375a8c..1f1f490a7 100644
--- a/src/bin/e_randr2.c
+++ b/src/bin/e_randr2.c
@@ -432,7 +432,8 @@ _config_update(E_Randr2 *r, E_Config_Randr2 *cfg, Eina_Bool update_only)
{
/* find right-most screen */
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;
}