Skip to content

Commit 4cda9ec

Browse files
committed
Fix workspace switch
1 parent 52f7a16 commit 4cda9ec

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,4 @@ po/Rules-quot
4747
po/stamp-po
4848
src/gala
4949
build
50+
debian

src/Widgets/MultitaskingView/MultitaskingView.vala

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,10 @@ public class Gala.MultitaskingView : ActorTarget, RootTarget, ActivatableCompone
9999
manager.workspaces_reordered.connect (on_workspaces_reordered);
100100
manager.workspace_switched.connect (on_workspace_switched);
101101

102-
manager.bind_property (
103-
"n-workspaces",
104-
workspaces_gesture_controller,
105-
"overshoot-lower-clamp",
106-
DEFAULT,
107-
(binding, from_value, ref to_value) => {
108-
to_value.set_double (-from_value.get_int () - 0.1 + 1);
109-
}
110-
);
102+
workspaces_gesture_controller.overshoot_lower_clamp = -manager.n_workspaces - 0.1 + 1;
103+
manager.notify["n-workspaces"].connect (() => {
104+
workspaces_gesture_controller.overshoot_lower_clamp = -manager.n_workspaces - 0.1 + 1;
105+
});
111106

112107
window_containers_monitors = new List<MonitorClone> ();
113108
update_monitors ();

0 commit comments

Comments
 (0)