mirror of
https://github.com/go-vgo/robotgo
synced 2026-05-24 10:19:01 +00:00
Fixed x11 warning
This commit is contained in:
parent
0dcc87c355
commit
f110d5bf9e
1 changed files with 2 additions and 0 deletions
|
|
@ -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 a new issue