mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-05-31 06:13:55 +00:00
Fix Unknown keycode name & IO error
This commit is contained in:
parent
e87c3f799e
commit
dfdf01af08
@ -1874,9 +1874,9 @@ void load_input_helper(Display *disp) {
|
||||
} else
|
||||
#endif
|
||||
if (strncmp(layout_name, prefix_xfree86, strlen(prefix_xfree86)) != 0) {
|
||||
logger(LOG_LEVEL_ERROR,
|
||||
"%s [%u]: Unknown keycode name '%s', please file a bug report!\n",
|
||||
__FUNCTION__, __LINE__, layout_name);
|
||||
// logger(LOG_LEVEL_ERROR,
|
||||
// "%s [%u]: Unknown keycode name '%s', please file a bug report!\n",
|
||||
// __FUNCTION__, __LINE__, layout_name);
|
||||
}
|
||||
else if (layout_name == NULL) {
|
||||
logger(LOG_LEVEL_ERROR,
|
||||
|
@ -1098,6 +1098,10 @@ UIOHOOK_API int hook_stop() {
|
||||
// https://bugs.freedesktop.org/show_bug.cgi?id=42356#c4
|
||||
//XFlush(hook->ctrl.display);
|
||||
XSync(hook->ctrl.display, False);
|
||||
if (hook->ctrl.display) {
|
||||
XCloseDisplay(hook->ctrl.display);
|
||||
hook->ctrl.display = NULL;
|
||||
}
|
||||
|
||||
status = UIOHOOK_SUCCESS;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user