Skip to content

Commit 8b4430b

Browse files
committed
fix: workspace applet window icon click not performing workspace switch
1 parent f936531 commit 8b4430b

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/panel/applets/workspaces/WindowIcon.vala

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,10 @@ namespace Workspaces {
5555
public override bool button_release_event(Gdk.EventButton event) {
5656
if (event.button != 1) return Gdk.EVENT_STOP;
5757

58-
var workspace = WorkspacesApplet.workspace_group.get_active_workspace();
59-
if (workspace != null && workspace == window.get_workspace()) {
60-
try {
61-
window.activate(event.time);
62-
} catch (Error e) {
63-
warning("Failed to activate window: %s", e.message);
64-
}
65-
return Gdk.EVENT_STOP;
58+
try {
59+
window.activate(event.time);
60+
} catch (Error e) {
61+
warning("Failed to activate window: %s", e.message);
6662
}
6763
return Gdk.EVENT_STOP;
6864
}

0 commit comments

Comments
 (0)