From d32005b3a4ed64365fc0ec6fc389d97c019c0d2f Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Wed, 2 Feb 2022 17:05:32 +0100 Subject: [PATCH] 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: --- js/ui/dnd.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/dnd.js b/js/ui/dnd.js index d6a1f07c8..9fbdf2873 100644 --- a/js/ui/dnd.js +++ b/js/ui/dnd.js @@ -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.