[gnome-shell/wip/carlosg/grabs-pt2: 23/30] overview: Propagate crossing events in cover pane
- From: Robert Mader <rmader src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/carlosg/grabs-pt2: 23/30] overview: Propagate crossing events in cover pane
- Date: Fri, 14 Jan 2022 20:52:14 +0000 (UTC)
commit 6cabe797cf493b9419a8e6d9fc7265c9c88cbbb0
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Jan 12 17:19:53 2022 +0100
overview: Propagate crossing events in cover pane
When animating the overview we temporarily cover it with an actor that
ignores events. This actor should still allow crossing events to go through
as per Mutter requirements.
js/ui/overview.js | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/js/ui/overview.js b/js/ui/overview.js
index 2312bb10d0..8fe167fb8c 100644
--- a/js/ui/overview.js
+++ b/js/ui/overview.js
@@ -162,7 +162,11 @@ var Overview = class {
this._coverPane = new Clutter.Actor({ opacity: 0,
reactive: true });
Main.layoutManager.overviewGroup.add_child(this._coverPane);
- this._coverPane.connect('event', () => Clutter.EVENT_STOP);
+ this._coverPane.connect('event', (_actor, event) => {
+ return (event.type() === Clutter.EventType.ENTER ||
+ event.type() === Clutter.EventType.LEAVE) ?
+ Clutter.EVENT_PROPAGATE : Clutter.EVENT_STOP;
+ });
this._coverPane.hide();
// XDND
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]