mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-15 15:07:16 +00:00
wm: fix key_cnt consistency glitch
This patch presents all press and release events to the pointer state, fixing the problem that _key_cnt was decreased but never increased. However, the inconsistency had no observable effects in practice. Issue #4176
This commit is contained in:
parent
ee463b21ae
commit
6a89f8b19e
@ -608,7 +608,7 @@ class Wm::Gui::Session_component : public Rpc_object<Gui::Session>,
|
||||
}
|
||||
|
||||
/* may be end of drag operation */
|
||||
if (ev.release() && _key_cnt == 0)
|
||||
if (ev.press() || ev.release())
|
||||
propagate_to_pointer_state = true;
|
||||
|
||||
/* pointer has left the application area */
|
||||
|
Loading…
x
Reference in New Issue
Block a user