[Interest] Has X event handling changed from Qt 4 to 5?

Thiago Macieira thiago.macieira at intel.com
Sun Jun 15 17:45:57 CEST 2014


Em dom 15 jun 2014, às 03:05:29, Scott Kostyshak escreveu:
> Hi,
> 
> At LyX we use xvkbd to send key presses for the purposes of testing.
> When building LyX with Qt 5 [1], our scripts no longer send capital
> letters as capital letters. They are instead sent as lower case
> letters. With Qt 4.8.5 they are sent correctly as upper case letters.
> Another LyX developer has independently confirmed the above behavior.
> 
> The problem only occurs when using XSendEvent(). The following results
> in "hello world" (on LyX built with Qt 5):
> xvkbd -no_root -wait_idle 18844 -xsendevent -window 0x05400008 -delay
> 100 -text "Hello World"
> while this results in "Hello World" (also with Qt 5):
> xvkbd -no_root -wait_idle 18844 -window 0x05400008 -delay 100 -text
> "Hello World"
> 
> I've contacted the xvkbd author and he suspects a change in how X
> events are handled by Qt.

Yes, the event handling changed completely. The entire code dealing with X was 
rewritten from scratch and now uses XCB instead of libX11.

The question we have here is: what events are received by the application?
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list