mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-18 21:27:56 +00:00
nitpicker: deliver press events to global key receiver
Fixes the following misbehavior: If a global key is pressed (e.g., Caps Lock in Sculpt) and the mouse is clicked before release, the global-keys handler receives the global-key press but no further events of the sequence, especially *no Caps-Lock release*. A more reasonable fix may address the "else branch" that deletes the _input_receiver in case of mouse events without a hovered client too, which is beyond the narrow scope of this fix.
This commit is contained in:
parent
ca47280ce9
commit
4a6c506f37
@ -285,7 +285,7 @@ void User_state::_handle_input_event(Input::Event ev)
|
||||
if (!_input_receiver)
|
||||
return;
|
||||
|
||||
if (!_mouse_button(key)
|
||||
if (!_mouse_button(key) || _global_key_sequence
|
||||
|| (_hovered
|
||||
&& (_hovered->has_focusable_domain()
|
||||
|| _hovered->has_same_domain(_focused))))
|
||||
|
Loading…
Reference in New Issue
Block a user