From 1c7456f2df07ac87ca6a34eb8304cfe1483b2526 Mon Sep 17 00:00:00 2001 From: lenemter Date: Fri, 13 Dec 2024 17:42:21 +0300 Subject: [PATCH] Move to `show_stage` --- src/WindowManager.vala | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/WindowManager.vala b/src/WindowManager.vala index f5a194bde..8886bb827 100644 --- a/src/WindowManager.vala +++ b/src/WindowManager.vala @@ -157,11 +157,6 @@ namespace Gala { }); } #endif - - var scroll_action = new SuperScrollAction (display); - scroll_action.triggered.connect (handle_super_scroll); - - stage.add_action_full ("super-scroll-action", CAPTURE, scroll_action); } private void handle_super_scroll (uint32 timestamp, double dx, double dy) { @@ -416,6 +411,10 @@ namespace Gala { display.window_created.connect ((window) => window_created (window)); + var scroll_action = new SuperScrollAction (display); + scroll_action.triggered.connect (handle_super_scroll); + stage.add_action_full ("super-scroll-action", CAPTURE, scroll_action); + stage.show (); Idle.add (() => {