|
20 | 20 | * preparing the wm, opening the components and holds containers for |
21 | 21 | * the icon groups, the WorkspaceClones and the MonitorClones. |
22 | 22 | */ |
23 | | -public class Gala.MultitaskingView : ActorTarget, ActivatableComponent { |
| 23 | +public class Gala.MultitaskingView : ActorTarget, RootTarget, ActivatableComponent { |
24 | 24 | public const int ANIMATION_DURATION = 250; |
25 | 25 |
|
26 | 26 | private GestureController workspaces_gesture_controller; |
@@ -57,18 +57,20 @@ public class Gala.MultitaskingView : ActorTarget, ActivatableComponent { |
57 | 57 | opened = false; |
58 | 58 | display = wm.get_display (); |
59 | 59 |
|
60 | | - multitasking_gesture_controller = new GestureController (MULTITASKING_VIEW, this, wm); |
| 60 | + multitasking_gesture_controller = new GestureController (MULTITASKING_VIEW, wm); |
61 | 61 | multitasking_gesture_controller.enable_touchpad (); |
| 62 | + add_gesture_controller (multitasking_gesture_controller); |
62 | 63 |
|
63 | 64 | add_target (ShellClientsManager.get_instance ()); // For hiding the panels |
64 | 65 |
|
65 | 66 | workspaces = new WorkspaceRow (display); |
66 | 67 |
|
67 | | - workspaces_gesture_controller = new GestureController (SWITCH_WORKSPACE, this, wm) { |
| 68 | + workspaces_gesture_controller = new GestureController (SWITCH_WORKSPACE, wm) { |
68 | 69 | overshoot_upper_clamp = 0.1 |
69 | 70 | }; |
70 | 71 | workspaces_gesture_controller.enable_touchpad (); |
71 | 72 | workspaces_gesture_controller.enable_scroll (this, HORIZONTAL); |
| 73 | + add_gesture_controller (workspaces_gesture_controller); |
72 | 74 |
|
73 | 75 | icon_groups = new IconGroupContainer (display.get_monitor_scale (display.get_primary_monitor ())); |
74 | 76 |
|
|
0 commit comments