<div dir="ltr">Hello,<div><br></div><div>I have a homemade program that rebinds keyboard shortcuts differently depending on which application has the focus. To do that, it looks for modifications to _NET_ACTIVE_WINDOW and then checks WM_CLASS to figure out which application gained focus.</div><div><br></div><div>This stuff no longer works in Wayland, so I am wondering what is the way to go moving forward. Is there a compatibility layer somewhere that would implement these X11 interfaces and events? Looking at the KWin scripting API, I see a signal "clientActivated" that seems relevant. Can this API be used to implement the functionality I described above?</div><div><br></div><div>Thank you, and best wishes,</div><div>Michaël</div></div>