From 4491c070be37fa81df1937f49692ae85024ba442 Mon Sep 17 00:00:00 2001 From: Christian Helmuth Date: Fri, 23 Aug 2019 12:15:51 +0200 Subject: [PATCH] input: fix Codepoint::INVALID in Press event The Press event is actually a Press_char event with a default codepoint. The default codepoint is now Codepoint { Codepoint::INVALID } /* value 0xfffe */ in contrast to Codepoint { Input::Event::INVALID } /* value 0 */ Issue #3483 --- repos/os/include/input/event.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repos/os/include/input/event.h b/repos/os/include/input/event.h index c017976787..393c8ec189 100644 --- a/repos/os/include/input/event.h +++ b/repos/os/include/input/event.h @@ -93,7 +93,7 @@ class Input::Event * types for assignments or for passing an event as return value. */ Event(Press_char arg) : _type(PRESS) { _attr.press = arg; } - Event(Press arg) : Event(Press_char{arg.key, Codepoint{INVALID}}) { } + Event(Press arg) : Event(Press_char{arg.key, Codepoint{Codepoint::INVALID}}) { } Event(Release arg) : _type(RELEASE) { _attr.release = arg; } Event(Relative_motion arg) : _type(REL_MOTION) { _attr.rel_motion = arg; } Event(Absolute_motion arg) : _type(ABS_MOTION) { _attr.abs_motion = arg; }