https://bugs.kde.org/show_bug.cgi?id=421068

--- Comment #2 from Alain Knaff <k...@kde.lka.org.lu> ---
Ok, now I located the commit which (probably) broke this:

https://github.com/KDE/kwin/commit/e73e331f35b9da4bbb99c80c5c1eedd2ae99422b

So, until 2016, kwin *used* to send a valid timestamp, but this got
deliberately broken to appease some Java Applications which were "extremely
picky" and would refuse focus. But after that change, we now have GTK
applications which dutifully take kwin's word for it, and actually do claim
focus "at any time", i.e. at a moment where doing so is no longer appropriate,
and where they disrupt the application that the user is actually working with.

Well, nowadays Java on the Desktop is pretty much dead, whereas GTK is alive
and kicking (even if tied to KDE's competitor Gnome). And GTK is used by some
very widely used applications such as Firefox and Thunderbird.

So we should really go back to respecting section 4.1.7 of the ICCCM "client to
Window Manager Communication" communication rules, and include a meaningful
timestamp. Indeed the ICCCM document clearly says:

  Windows with the atom WM_TAKE_FOCUS in their WM_PROTOCOLS property may
receive 
  a ClientMessage event from the window manager (as described in section 4.2.8) 
  with WM_TAKE_FOCUS in its data[0] field and a valid timestamp (i.e. not 
  CurrentTime ) in its data[1] field.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to