Skip to content
Commit 30aa5975 authored by Pekka Paalanen's avatar Pekka Paalanen
Browse files

desktop-shell: handle NULL output in center_on_output()



This is a tentative crash fix for a case where there are no enabled
weston_outputs at all.

If no output is given, just put the surface at 0,0. At least it should
become mostly visible if an output is plugged in, if not centered.

Signed-off-by: default avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
Signed-off-by: default avatarFabien Lahoudere <fabien.lahoudere@collabora.com>
Reviewed-by: default avatarIan Ray <ian.ray@ge.com>
parent 99372bab
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment