From 6a01b9c52a24c4b8d6aff455bf3ef53701d75cf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Hedin=20Br=C3=B8nner?= Date: Fri, 24 Aug 2018 12:09:49 +0200 Subject: [PATCH] wayland: Enable clicking on spaces This will be used to implement selection after swiping. --- tiling.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tiling.js b/tiling.js index 50d8bf0..a2d8a75 100644 --- a/tiling.js +++ b/tiling.js @@ -153,6 +153,18 @@ class Space extends Array { reactive: true // Disable the background menu }, meta_display) ); + + // This kills all input on X11, but works on wayland... + if (Meta.is_wayland_compositor()) { + Main.layoutManager.trackChrome(background); + this.signals.connect(background, 'button-press-event', () => { + if (!inPreview) + return; + let nav = Navigator.getNavigator(); + spaces.selectedSpace = this; + nav.finish(); + }); + } this.background = background; this.shadow = new St.Widget();; this.shadow.set_style(