Re: [hackers] [dwm] fix not updating _NET_ACTIVE_WINDOW || NRK

From: NRK <nrk_AT_disroot.org>
Date: Tue, 17 Mar 2026 22:41:08 +0000

On Fri, Feb 13, 2026 at 10:16:20AM +0100, git_AT_suckless.org wrote:
> commit 397d618f1cfbed398ef05d0c9d1e5dbcdb8144e7
> Author: NRK <nrk_AT_disroot.org>
> AuthorDate: Thu Feb 12 22:28:02 2026 +0000
> Commit: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
> CommitDate: Fri Feb 13 10:16:08 2026 +0100
>
> fix not updating _NET_ACTIVE_WINDOW

There was a bug in wine/proton applications where it would sometimes
refuse to take focus until you explicitly click it, e.g changing tags
back and forth.

(Reported here also: https://old.reddit.com/r/suckless/comments/1msx6pa/dwmhow_to_handle_wine_apps_focus/)

Someone recently informed me that this patch actually ends up fixing
that bug too, even though that was not what the original fix was
intended for.

My guess is that wine refuses to take focus unless the window is also
active. Now that we properly set _NET_ACTIVE_WINDOW it takes focus as
expected without needing explicit click. Just my guess though, didn't
confirm.

So the patch seems to be good. Just documenting the bonus side-effect
fix here for archival/informational purposes.

- NRK
Received on Tue Mar 17 2026 - 23:41:08 CET

This archive was generated by hypermail 2.3.0 : Tue Mar 17 2026 - 23:48:41 CET