mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-20 04:30:06 +01:00
plugin: prevent potential keycode leakage to the logs
Mixup of #if vs #ifdef caused this condition to always be treated as
true, resulting in leakage of key codes to the logs if the libinput log
level was set to debug.
Fixes: 7137eb9702 ("plugin: add ability to queue more events in the evdev_frame callback")
Closes #1163
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1276>
This commit is contained in:
parent
7a22eb8d08
commit
abd5989ee8
3 changed files with 5 additions and 3 deletions
|
|
@ -376,7 +376,9 @@ else
|
|||
endif
|
||||
|
||||
############ libinput.so ############
|
||||
config_h.set10('EVENT_DEBUGGING', get_option('internal-event-debugging'))
|
||||
if get_option('internal-event-debugging')
|
||||
config_h.set('EVENT_DEBUGGING', 1)
|
||||
endif
|
||||
|
||||
install_headers('src/libinput.h')
|
||||
src_libinput = src_libfilter + [
|
||||
|
|
|
|||
|
|
@ -180,7 +180,7 @@ double_tool_plugin_device_handle_frame(struct libinput_plugin *libinput_plugin,
|
|||
bool eraser_toggled = eraser_toggle != NULL;
|
||||
bool pen_toggled = pen_toggle != NULL;
|
||||
|
||||
#if EVENT_DEBUGGING
|
||||
#ifdef EVENT_DEBUGGING
|
||||
plugin_log_debug(libinput_plugin,
|
||||
"device %s: tool state: pen:%s eraser:%s\n",
|
||||
libinput_device_get_name(device->device),
|
||||
|
|
|
|||
|
|
@ -3225,7 +3225,7 @@ libinput_post_event(struct libinput *libinput, struct libinput_event *event)
|
|||
size_t move_len;
|
||||
size_t new_out;
|
||||
|
||||
#if EVENT_DEBUGGING
|
||||
#ifdef EVENT_DEBUGGING
|
||||
libinput_print_queued_event(event);
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue