* Martin Gräßlin <mgraesslin kde org> [2014-10-27 10:26:14 +0100]:
It seems the Qt toolkit only sets _NET_WM_NAME and doesn't set WM_NAME at all. Now that raises some questions: - Should a client also set WM_NAME when setting _NET_WM_NAME? Sure, it's a good idea for backwards-compatiblity, but is it warranted to open a bug against Qt? (I'd say yes, but I'd like to hear other opinions).From my reading of the relevant section in ICCCM (4.1.2.1) there is no indication that a client is supposed to set it. Given that it's certainly not a bug on Qt's side. If a window manager has problems with it, it's more because the window manager doesn't support EWMH.Okay. I'll still open a bug in Qt then since it seems to raise problems in the wild - then it's up to them to decide whether it's worth to fix it or not ;)Fair enough, though I think it's not the task of a toolkit to be bug-to-bug compatible with each window manager ;-)
Sure, but since it lead to problems in two applications already (KeePass and herbstluftwm), and everything else (tm) seems to set both, it still (IMHO) is Qt's job to do it the way it causes the least friction everywhere else. Of course it'd be ideal if everything else would support _NET_WM_NAME (and I'll open a bugreport against KeePass as well), but that's simply not the case. But as said, that's left to the Qt people to decide then ;)
Shameless plug: as you are using Qt 5, consider using KF5::WindowSystem which is a nice Qt 5 (only, no further KDE dependencies) library implementing EWMH, supporting fallback to ICCCM if needed. It's the library powering KWin and Plasma (e.g. taskmanager) and also used in LXQt.Probably not an option with PyQt, and also that's not really a dependency I want to have just to set a window title :Dah that be more for the case of reading the window title.
That part is in KeePass (a password manager which can autofill fields in a browser it finds via the title), I just happened to get the bug report because it works everywhere else :P Thanks again for your insights! Florian -- http://www.the-compiler.org | me the-compiler org (Mail/XMPP) GPG 0xFD55A072 | http://the-compiler.org/pubkey.asc I love long mails! | http://email.is-not-s.ms/
Attachment:
pgplM_0m98sUV.pgp
Description: PGP signature