Skip to content

Commit 647e900

Browse files
authored
Fix workspace switch (#2389)
1 parent 52f7a16 commit 647e900

File tree

3 files changed

+17
-9
lines changed

3 files changed

+17
-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

data/gala.metainfo.xml.in

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,18 @@
2727
<update_contact>contact_at_elementary.io</update_contact>
2828

2929
<releases>
30+
<release version="8.2.1" date="2025-05-15" urgency="medium">
31+
<description>
32+
<p>Improvements:</p>
33+
<ul>
34+
<li>Updated translations</li>
35+
</ul>
36+
</description>
37+
<issues>
38+
<issue url="https://github.com/elementary/gala/issues/2322">Workspace Switch</issue>
39+
</issues>
40+
</release>
41+
3042
<release version="8.2.0" date="2025-05-13" urgency="medium">
3143
<description>
3244
<p>Improvements:</p>

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)