Files
xserver/dix
Samuel Thibault 364d649815 dix: do not send focus event when grab actually does not change
c67f2eac56 ("dix: always send focus event on grab change") made dix
always sent events when it's a NotifyGrab or NotifyUngrab, even if
from == to, because 'from' can just come from a previous XSetInputFocus
call.

However, when an application calls XGrabKeyboard several times on
the same window, we are now sending spurious FocusOut+FocusIn with
NotifyGrab, even if the grab does not actually change. This makes screen
readers for blind people spuriously emit activity events which disturb
screen reading workflow when e.g. switching between menus.

This commit avoids calling DoFocusEvents in that precise case, i.e. when
oldWin is a previous grab and the new grab is the same window.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Reviewed-by: Adam Jackson <ajax@redhat.com>
2018-11-19 13:56:51 -05:00
..
2015-07-08 16:41:29 -04:00
2003-11-14 16:49:22 +00:00
2003-11-14 15:54:54 +00:00
2014-11-12 10:25:00 +10:00
2017-10-30 13:45:20 -04:00
2015-04-21 16:57:07 -07:00
2018-09-28 16:25:17 -04:00
2018-09-12 19:31:07 +00:00
2017-11-06 17:22:46 -05:00
2018-03-27 10:13:18 -04:00
2017-10-30 13:45:20 -04:00
2016-05-26 16:07:54 -07:00
2013-07-23 23:56:58 +01:00
2014-11-12 10:25:00 +10:00