dsa-t

Results 141 comments of dsa-t

Turns out it is also not working as intended on wxOSX.

Maybe wx should implement its own gesture detector using raw touch events, or let the application do it, because the events are so different across platforms.

KiCad doesn't include `X.h` directly anywhere in the source tree. It's probably included via one of the external headers.

It is included via: -`include/gal/opengl/kiglew.h` -`/usr/include/GL/glxew.h` -`/usr/include/X11/Xlib.h` -`/usr/include/X11/X.h`

And due to https://gitlab.com/kicad/code/kicad/-/blob/acec5552c012198ec2f2d497e91b812a183dbbfc/include/gal/opengl/gl_utils.h we must include both `GL/glxew.h` and `wx/glcanvas.h`

> Maybe we should remove it and just add position to `wxMultiTouchEvent` itself too? Makes sense to me.

While a finger is held for too long on MSW, activating the "right mouse buton" gesture, the OS doesn't synthesizing mouse down/move events. So might need to add a `IsSynthesized`...

Also in Qt, a `nomousefromtouch` windows platform parameter can be passed to skip these synthesized events at Qt level (see https://doc.qt.io/qt-6/qguiapplication.html#platform-specific-arguments)

On my GTK system, the mouse pointer emulation code from https://github.com/wxWidgets/wxWidgets/pull/2539 doesn't seem to be needed. If I return `false` from `touch_callback`, GTK sends the mouse events by itself. If...

Another question is if the user app has handled the touch event, should we still emit mouse events synthesized by the OS or block them?