mirror of
https://github.com/gosticks/PaperWM.git
synced 2026-10-05 19:56:53 +00:00
wayland: Enable clicking on spaces
This will be used to implement selection after swiping.
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user