Skip to content

Commit

Permalink
Unknown keycode name 'evdev_aliases(qwerty)', please file a bug report!
Browse files Browse the repository at this point in the history
Fixes #130
  • Loading branch information
kwhat committed Mar 17, 2022
1 parent aa5bb9f commit 083a7cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,10 @@ if(UNIX AND NOT APPLE)
add_compile_definitions(uiohook PRIVATE USE_XTEST)
endif()

if(LINUX)
option(USE_EVDEV "Generic Linux input driver (default: enabled)" ON)
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
option(USE_EVDEV "Generic Linux input driver (default: ON)" ON)
if(USE_EVDEV)
add_compile_definitions("USE_EVDEV")
add_compile_definitions(uiohook PRIVATE USE_EVDEV)
endif()
endif()
elseif(APPLE)
Expand Down
2 changes: 1 addition & 1 deletion src/x11/input_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -1803,7 +1803,7 @@ void load_input_helper() {
XkbDescPtr desc = XkbGetKeyboard(helper_disp, XkbGBN_AllComponentsMask, XkbUseCoreKbd);
if (desc != NULL && desc->names != NULL) {
const char *layout_name = XGetAtomName(helper_disp, desc->names->keycodes);
logger(LOG_LEVEL_INFO, "%s [%u]: Found keycode atom '%s' (%i)!\n",
logger(LOG_LEVEL_DEBUG, "%s [%u]: Found keycode atom '%s' (%i)!\n",
__FUNCTION__, __LINE__, layout_name, (unsigned int) desc->names->keycodes);

const char *prefix_xfree86 = "xfree86_";
Expand Down

0 comments on commit 083a7cd

Please sign in to comment.