Don't try to send surface presence events for zones with no wayland output

Avoid that NULL pointer deref.
This commit is contained in:
Derek Foreman 2016-06-24 10:05:18 -05:00
parent 191e5180b5
commit eb94710146
1 changed files with 2 additions and 0 deletions

View File

@ -83,6 +83,8 @@ _e_comp_wl_surface_outputs_update(E_Client *ec)
s = ec->comp_data->surface;
wlo = zone->output;
if (!wlo) continue;
res = _output_resource_find(wlo->resources, s);
if (!res) continue;