MacMusic  |  PcMusic  |  440 Software  |  440 Forums  |  440TV  |  Zicos
focus
Recherche

KDE improves focus stealing prevention on Wayland

lundi 11 août 2025, 23:39 , par OS News
You click a link in your chat app, your browser with a hundred tabs comes to the front and opens that page. How hard can it be? Well, you probably know by now that Wayland, unlike X, doesn’t let one application force its idiot wishes on everyone else. In order for an application to bring its window to the front, it needs to make use of the XDG Activation protocol.

In essence, an application cannot take focus, it can only receive focus. In the example above, your chat app would request an XDG Activation token from the compositor. It then asks the system to open the given URL (typically launching the web browser) and sends along the token. The browser can then use this token to activate its window.
↫ Kai Uwe

After explaining exactly how this mechanism works, KDE developer Kai Uwe details the issue that not every application yet properly supports the XDG Activation protocol, and some that do have bugs that, say, might make an application discard its token too early. In other words, it’s time to start testing.

You’ll need to use the latest git master brach of KWin, and enable set the “Focus Stealing Prevention” option in Window Management to “Extreme”. When set to “Extreme”, KWin will exclusively activate windows that request activation with a valid token. They’ve already found and fixed a number of issues in KDE using this method, but more are bound to found, particularly in third-party applications.

They’re planning on turning on KWin’s focus stealing prevention on Wayland with forgiving settings at first, but increase the strictness of the feature as time progresses and issues are fixed.
https://www.osnews.com/story/143040/kde-improves-focus-stealing-prevention-on-wayland/

Voir aussi

News copyright owned by their original publishers | Copyright © 2004 - 2025 Zicos / 440Network
Date Actuelle
mar. 12 août - 10:34 CEST