dnd: Make event handler actor reactive

Even though we coerce events on it through a grab, it does require
to be reactive to be considered a keyboard focus. Make it reactive
so it can handle key events again.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5005
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2146>
This commit is contained in:
Carlos Garnacho 2022-02-02 17:05:32 +01:00
parent 8ca45a8fc2
commit d32005b3a4

View File

@ -45,7 +45,7 @@ let currentDraggable = null;
function _getEventHandlerActor() {
if (!eventHandlerActor) {
eventHandlerActor = new Clutter.Actor({ width: 0, height: 0 });
eventHandlerActor = new Clutter.Actor({ width: 0, height: 0, reactive: true });
Main.uiGroup.add_actor(eventHandlerActor);
// We connect to 'event' rather than 'captured-event' because the capturing phase doesn't happen
// when you've grabbed the pointer.