Skip to content

Commit

Permalink
fix: workspace applet window icon click not performing workspace swit…
Browse files Browse the repository at this point in the history
…ch (#525)
  • Loading branch information
JoshStrobl committed Feb 11, 2024
1 parent f936531 commit 9b775d6
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/panel/applets/workspaces/WindowIcon.vala
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,10 @@ namespace Workspaces {
public override bool button_release_event(Gdk.EventButton event) {
if (event.button != 1) return Gdk.EVENT_STOP;

var workspace = WorkspacesApplet.workspace_group.get_active_workspace();
if (workspace != null && workspace == window.get_workspace()) {
try {
window.activate(event.time);
} catch (Error e) {
warning("Failed to activate window: %s", e.message);
}
return Gdk.EVENT_STOP;
try {
window.activate(event.time);
} catch (Error e) {
warning("Failed to activate window: %s", e.message);
}
return Gdk.EVENT_STOP;
}
Expand Down

0 comments on commit 9b775d6

Please sign in to comment.