-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
In short:
1. When the icon is received but no matching window exists, it is
discarded. That part of code is here:
https://github.com/QubesOS/qubes-gui-daemon/blob/master/window-icon-updater/icon-receiver#L319-L324
2. Instead of discarding it should be cached for a short time, and then
when new window appears icon from cache should be applied (if there is
one). This part require watching for "CreateNotifyEvent", which isn't
currently done. Instead X11 events are handled only when searching for
some window:
https://github.com/QubesOS/qubes-gui-daemon/blob/master/window-icon-updater/icon-receiver#L235
Watching for such events is implemented on the sender part here:
https://github.com/QubesOS/qubes-gui-agent-linux/blob/master/window-icon-updater/icon-sender#L134-L143
3. The icon cache should be done with security in mind, for example to
not allow any VM use all dom0 memory. I think limiting its size to for
example last 10 icons should be enough.
Not sure if that is enough to implement this change, probably some
knowledge of X11 protocol is required... Anyway I'll paste above
information into that ticket, for whoever will work on this.
- --
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQEcBAEBCAAGBQJWvTEdAAoJENuP0xzK19cs/HYIAIQjDfmyp8o6lwJ2Shl1okQi
FXRcRWWQqrQekGchDS/0LEuRKYEbHnyYOBiW8J+iwanJwflJupBszrgV15CHRQyb
7wOiIuCtqn8WZzqNamFsXNHh+4kEpzvvEn+WaTHwjwKD7iWZPN4p1Bm6W9SDOn8t
ud+r9NFifyPaEM07VYqbslFmkMWepQkUi5gVFrKNXghgiDaV5OKZQsVqF5vsuiEk
SlJbe0Hd/xdBPNl8hHl7ANQEKCfNONbed698NobRAsHkplBzGu/Ecx90JQ/XDFMe
5bvIXRD3X3ggWJD9GCMoL7x5YmcsodDAgC2tlOxmFcpo7ptyGNipuyqGpbToFT8=
=3L5e
-----END PGP SIGNATURE-----