From 1df0b0ac99f811b7c8f1fbf9972cc75bf363f021 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 14 Oct 2019 23:58:18 +0200 Subject: [PATCH] Use "CurrentTime" symbolic constant in XTestFakeXXXEvent() No real changes, just replace "0" with a more clear constant. --- src/unix/uiactionx11.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/unix/uiactionx11.cpp b/src/unix/uiactionx11.cpp index 4722aff96b..6ea7f5ce63 100644 --- a/src/unix/uiactionx11.cpp +++ b/src/unix/uiactionx11.cpp @@ -243,7 +243,7 @@ private: bool wxUIActionSimulatorXTestImpl::DoX11Button(int xbutton, bool isDown) { - return XTestFakeButtonEvent(m_display, xbutton, isDown, 0) != 0; + return XTestFakeButtonEvent(m_display, xbutton, isDown, CurrentTime) != 0; } bool wxUIActionSimulatorXTestImpl::DoX11MouseMove(long x, long y) @@ -266,7 +266,7 @@ bool wxUIActionSimulatorXTestImpl::DoX11MouseMove(long x, long y) #endif // GTK+ 3.10+ #endif // __WXGTK3__ - return XTestFakeMotionEvent(m_display, -1, x, y, 0) != 0; + return XTestFakeMotionEvent(m_display, -1, x, y, CurrentTime) != 0; } bool @@ -274,7 +274,7 @@ wxUIActionSimulatorXTestImpl::DoX11Key(KeyCode xkeycode, int WXUNUSED(modifiers), bool isDown) { - return XTestFakeKeyEvent(m_display, xkeycode, isDown, 0) != 0; + return XTestFakeKeyEvent(m_display, xkeycode, isDown, CurrentTime) != 0; } #endif // wxUSE_XTEST