commit 5c5e00789db9df4e32ec0450d5f4fadda42839e1
parent eb007eb61322c677781a6a2baddb4b3c804bab6f
Author: deurzen <max@deurzen.net>
Date: Wed, 1 Jun 2022 10:25:28 +0200
fixes caps lock ignore bug
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/kranewl/input/cursor.cc b/src/kranewl/input/cursor.cc
@@ -462,13 +462,15 @@ process_cursorbinding(Cursor_ptr cursor, uint32_t button, uint32_t modifiers)
{
TRACE();
+ modifiers &= ~WLR_MODIFIER_CAPS;
+
if (!button || !modifiers)
return false;
CursorInput input = CursorInput{
.target = CursorInput::Target::Global,
.button = static_cast<CursorInput::Button>(button),
- .modifiers = modifiers & ~WLR_MODIFIER_CAPS
+ .modifiers = modifiers
};
View_ptr view = cursor->view_under_cursor();