-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Fri, May 22, 2015 at 05:46:46AM -0700, Vít Šesták wrote:
> It seems to occur only when switching windows by Alt+Tab or Alt+backtick
> (i.e. "`"), but not by clicking to titlebars. What is substantially
> different between switching by keyboard and switching by clicking titlebars?
>
> This is probably also a reason why I get this issue so often. I switch
> windows by Alt+Tab almost exclusively.
>
> There is also some asymmetry: When I switch from Iceweasel to XFCE
> Terminal, the focus is often left in Iceweasel. But it is not true in the
> opposite direction…
I think I've found the problem:
https://github.com/marmarek/qubes-gui-daemon/commit/0a9dace589d3a00f58690fbe7d1173260b678f4f
I've just uploaded qubes-gui-dom0-3.0.4 to current-testing repository.
You need to restart VM(s) after the update.
Can you confirm (or deny) that it fixes the problem?
> I tried to write a wokaround that polls every 100ms and on window
> focus/activity change, it focuses Plasma desktop for an unnoticeably short
> time and then back the original window. (See
>
https://gist.github.com/v6ak/9a38c5d643d17a53e799 .) It behaves strangely:
> Switching from one window to another (tested again on Iceweasel <–> XFCE
> Terminal) gives the new window a focus for some short time, but it is taken
> back by the old window after, say, 0.5 seconds. I don't know what the hell
> it is, but it suggests some race condition in the protocol.
Something like this. More precisely - application can be told to take
the focus (in the VM) itself, and it can do it with arbitrary delay.
- --
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 v1
iQEcBAEBAgAGBQJVXyimAAoJENuP0xzK19csGsIIAIanyB3lzTK3QFLKItxDb0C2
kJynoKppSDfUtDOOlo9p3wpRw46fg2l0JDUGFUptlYtbGzbxIP7oY+gn4I6NLh2J
vXrur9CiuRtirEl0i+JgRpesYBPEkfcYs4bYQpmxMzlr0/LX0RLa0y2mW/OCw2dl
iIxDkZz/3z/oORB5GfW0rcGDfbI1FpAWEYAr3atl4ngrV3v+CECI6ILbkTLmdUvF
fSzYBFGluV02f1BzbgRy9HbzhAGnFIjgtg8VEH89ZZj556Wj2k9JK6VXHDkSO1F5
Hi6SRkQs0vpXxvi3ufpTtJYN8QlYWbWv45xg7BP//Qcm3hdO8RghDzV+juwJjMQ=
=OG0o
-----END PGP SIGNATURE-----