-
Peter Hutterer authored
Where a pen was forced out of proximity and an eraser came into proximity without axis updates on the prox-in, subsequent axis updates would trigger the pen back into proximity. This resulted in two tools in proximity at once though the new pen never went out of proximity This would trigger crashes in various compositors/applications, see https://github.com/xournalpp/xournalpp/issues/1141#issuecomment-578362497 The cause was a wrong condition introduced in ffd8c71e. We only need to force the pen bit on if the current tool state is currently zero and no tool update was sent with the axis event. In our case, the tool state is nonzero already (eraser) and we can skip this bit. Fixes #418 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
71830dd4