[gnome-shell/wip/carlosg/dnd-key-events: 1/2] dnd: Make event handler actor reactive
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/carlosg/dnd-key-events: 1/2] dnd: Make event handler actor reactive
- Date: Wed, 2 Feb 2022 16:16:14 +0000 (UTC)
commit 220e3eaf65cabf68204968bfda19173854edc66c
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Feb 2 17:05:32 2022 +0100
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
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 d6a1f07c82..9fbdf28738 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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]