GNOME Bugzilla – Bug 767848
crash in the window test
Last modified: 2016-06-20 18:14:17 UTC
I am hitting this assertion, running testsuite/gtk/window under wayland:
+ Trace 236366
Yes, I can reproduce randomly. The window passed to emit_selection_owner_change() is NULL when this occurs, and that comes from primary_selection_selection(). I guess this is a race condition, as testsuite/gtk/window maps/unmaps windows rapidly, the keyboard focus might be already lost by the time this gets called.
Created attachment 330070 [details] [review] [PATCH] wayland: do not set PRIMARY selection if focus is lost If keyboard focus is (already) lost, do not advertise PRIMARY selection.
Review of attachment 330070 [details] [review]: That looks almost too easy