mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-05-31 06:13:55 +00:00
Fixed x11 warning
This commit is contained in:
parent
0dcc87c355
commit
f110d5bf9e
@ -19,6 +19,8 @@
|
||||
Sleep(DEADBEEF_RANDRANGE(0, 1));
|
||||
}
|
||||
#elif defined(USE_X11)
|
||||
Display *XGetMainDisplay(void);
|
||||
|
||||
void X_KEY_EVENT(Display *display, MMKeyCode key, bool is_press) {
|
||||
XTestFakeKeyEvent(display, XKeysymToKeycode(display, key), is_press, CurrentTime);
|
||||
XSync(display, false);
|
||||
|
Loading…
Reference in New Issue
Block a user