GNOME Bugzilla – Bug 705859
wayland: refactor window destruction and focus
Last modified: 2013-08-13 07:44:27 UTC
The previous code was leaving focus fields dirty in MetaWaylandPointer and MetaWaylandKeyboard at time (which could crash the X server because of invalid object IDs) The new code is more tighly integrated in the normal X11 code for handling keyboard focus (meaning that the core idea of input focus is also correct now), so that meta_window_unmanage() can do the right thing. As a side benefit, clicking on wayland clients now unfocus X11 clients. For the mouse focus, we need to clear the surface pointer when the metawindowactor is destroyed (even if the actual actor is kept alive for effects), so that a repick finds a different pointer focus.
Created attachment 251384 [details] [review] wayland: refactor window destruction and focus
Attachment 251384 [details] pushed as 9a5f243 - wayland: refactor window destruction and focus Reviewed by Robert Bragg in IRC.