summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2024-02-18 10:31:14 +0800
committerSean Whitton <spwhitton@spwhitton.name>2024-02-18 10:31:14 +0800
commit942551fd23f6ad626538054bffd845c713ddcb3e (patch)
treea6f2663cb380b49bd52ef5d55ac074c4db7c8cfe
parent050a7e84887574365c82f1424f2e770005a54a27 (diff)
downloadpapersway-942551fd23f6ad626538054bffd845c713ddcb3e.tar.gz
i3status-wrapper: check that focus event is not a workspace change
-rwxr-xr-xscripts/desktop/i3status-wrapper2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/desktop/i3status-wrapper b/scripts/desktop/i3status-wrapper
index b57f05a..dbc02ba 100755
--- a/scripts/desktop/i3status-wrapper
+++ b/scripts/desktop/i3status-wrapper
@@ -131,7 +131,7 @@ unless (fork // warn "couldn't fork monitoring loop") {
# Other container changes
elsif ($e->{change} && exists $info{paper_ws}{$info{focused_ws}}
&& ($e->{change} eq "close"
- || $e->{change} eq "focus"
+ || $e->{change} eq "focus" && !$e->{current}
|| $e->{change} eq "move"
&& $e->{container} && $e->{container}{type} eq "con"
|| $e->{change} eq "floating"