Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/keypress.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
(XTestFakeKeyEvent(display, \
XKeysymToKeycode(display, key), \
is_press, CurrentTime), \
XSync(display, false))
XFlush(display))
#define X_KEY_EVENT_WAIT(display, key, is_press) \
(X_KEY_EVENT(display, key, is_press))
#endif
Expand Down
6 changes: 3 additions & 3 deletions src/mouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ void moveMouse(MMSignedPoint point)
Display *display = XGetMainDisplay();
XWarpPointer(display, None, DefaultRootWindow(display),
0, 0, 0, 0, point.x, point.y);
XSync(display, false);
XFlush(display);
#elif defined(IS_WINDOWS)

if(vscreenWidth<0 || vscreenHeight<0)
Expand Down Expand Up @@ -208,7 +208,7 @@ void toggleMouse(bool down, MMMouseButton button)
#elif defined(USE_X11)
Display *display = XGetMainDisplay();
XTestFakeButtonEvent(display, button, down ? True : False, CurrentTime);
XSync(display, false);
XFlush(display);
#elif defined(IS_WINDOWS)
INPUT mouseInput;
mouseInput.type = INPUT_MOUSE;
Expand Down Expand Up @@ -321,7 +321,7 @@ void scrollMouse(int x, int y)
XTestFakeButtonEvent(display, ydir, 0, CurrentTime);
}

XSync(display, false);
XFlush(display);

#elif defined(IS_WINDOWS)

Expand Down