diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2018-11-29 09:15:52 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2018-12-19 15:55:42 +1000 |
commit | 96a0e8ed66803825f31f848fce7af06ee4413e86 (patch) | |
tree | 4313b23fb2575e639f1f0b8ff69c466ea4f522a1 /tools/libinput-debug-events.c | |
parent | c32bd79af571225e78a2e8933aeb3fda5753bfac (diff) | |
download | libinput-96a0e8ed66803825f31f848fce7af06ee4413e86.tar.gz |
tools: don't apply config options on device removed
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'tools/libinput-debug-events.c')
-rw-r--r-- | tools/libinput-debug-events.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/libinput-debug-events.c b/tools/libinput-debug-events.c index 8ca2c542..ce0f2d63 100644 --- a/tools/libinput-debug-events.c +++ b/tools/libinput-debug-events.c @@ -782,11 +782,13 @@ handle_and_print_events(struct libinput *li) case LIBINPUT_EVENT_NONE: abort(); case LIBINPUT_EVENT_DEVICE_ADDED: - case LIBINPUT_EVENT_DEVICE_REMOVED: print_device_notify(ev); tools_device_apply_config(libinput_event_get_device(ev), &options); break; + case LIBINPUT_EVENT_DEVICE_REMOVED: + print_device_notify(ev); + break; case LIBINPUT_EVENT_KEYBOARD_KEY: print_key_event(li, ev); break; |