RFC: fix a segfault with -O3
On my machine, if gnome-shell-3.38.1 is built with -O3
(--buildtype release
in meson command), it makes GDM in Wayland segfault and fallback to X11.
From the coredump I found there was a null-pointer dereference in _clutter_stage_queue_event
. Not sure if it's a coding error, or a result of mis-optimization. But anyway this change seems "fixed" the issue for me.
Edited by Xi Ruoyao