Don't eagerly set wxKeyEvent position fields.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 24 Jul 2012 20:45:52 +0000 (20:45 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 24 Jul 2012 20:45:52 +0000 (20:45 +0000)
commit2f7baaeccf143a4606c463bd50b1bd995fd3d18a
tree59ddf9d99482dd80368136e1b283a5e1973e5104
parent7ce6da52a1d67ebe79fac0d8add6ad8f19b38528
Don't eagerly set wxKeyEvent position fields.

This results in a noticeable delay when using wxGTK via a remote X11
connection for every key event as a round trip to server is needed to get the
mouse pointer position every time a key is pressed or released.

Only provide the position on demand. And explain that it's actually not very
useful as it's simply the same as the current mouse position.

Closes #14361.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72207 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/event.h
include/wx/osx/app.h
interface/wx/event.h
samples/keyboard/keyboard.cpp
src/common/event.cpp
src/gtk/window.cpp
src/msw/window.cpp
src/osx/carbon/app.cpp
src/osx/carbon/nonownedwnd.cpp
src/osx/webview_webkit.mm