mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-12 22:55:53 +08:00
removed attempt to make release/press of a repeating key use
the same server time. was getting what appears to be deadlock but not sure why.
This commit is contained in:
@@ -717,16 +717,10 @@ void CXWindowsSecondaryScreen::doKeystrokes(
|
||||
// with m_repeat == false count times.
|
||||
Keystrokes::const_iterator start = k;
|
||||
for (; count > 0; --count) {
|
||||
// we generally want repeating keys to use the exact
|
||||
// same event time for each release/press pair so we
|
||||
// don't want to use CurrentTime which can't ensure
|
||||
// that.
|
||||
Time time = getCurrentTime(m_window);
|
||||
|
||||
// send repeating events
|
||||
for (k = start; k != keys.end() && k->m_repeat; ++k) {
|
||||
XTestFakeKeyEvent(display,
|
||||
k->m_keycode, k->m_press, time);
|
||||
k->m_keycode, k->m_press, CurrentTime);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user