>>>>> "CRM" == Carlos R Mafra <[email protected]> writes:
YK>>> My supposition is following: XInput focus and сore protocol
YK>>> focus notion is orthogonal, i.e. XSetInputFocus(3) does not
YK>>> affect XInput focus and XISetFocus(3) does not affect core
YK>>> protocol.
CRM>> The man page of XISetFocus says that:
CRM>> "XISetFocus causes the X server to generate core, XI and XI2
CRM>> focus events."
CRM>> So perhaps the solution would be to replace XSetInputFocus()
CRM>> with XISetFocus().
I'm incompetent in X protocol, and I'm probably wrong. But I suspect
that XSetInputFocus sets focus for X Core protocol, and XI and X Core
protocol is different things. So it might be both of them are needed.
On the other hand, I grepped several popular window managers by
'XISetFocus' and I found nothing. So problem, probably could be solved
without using XISetFocus, maybe some initial configuration to tell
XInput to be in sync with core, etc.
YK>>> PS. The workaround for this bug is to force gtk3 to use core
YK>>> protcol:
YK>>>
YK>>> export GDK_CORE_DEVICE_EVENTS=1
CRM>> Thanks for the analysis. I noticed this annoying behavior with
CRM>> Evince lately.
CRM>> Did you research this any further?
Since I didn't get any response until now I forgot about this issue,
after all I found workaround (GDK_CORE_DEVICE_EVENTS), so this problem
was not as annoying as before.
--
Non olet
--
To unsubscribe, send mail to [email protected].