Call XFlush() after simulating mouse button events too
For some reason, mouse press events were still received without flushing, but mouse release ones were not received by GTK itself (and a fortiori by wxGTK) without it.
This commit is contained in:
@@ -108,7 +108,12 @@ bool wxUIActionSimulatorX11Impl::SendButtonEvent(int button, bool isDown)
|
||||
// all pending events, notably mouse moves.
|
||||
XSync(m_display, False /* don't discard */);
|
||||
|
||||
return DoX11Button(xbutton, isDown);
|
||||
if ( !DoX11Button(xbutton, isDown) )
|
||||
return false;
|
||||
|
||||
XFlush(m_display);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
#if wxUSE_PLAINX_IMPL
|
||||
|
Reference in New Issue
Block a user