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:
Norman Feske 2021-10-12 16:25:01 +02:00
parent ee463b21ae
commit 6a89f8b19e

View File

@ -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 */