Revert "sculpt: consider screen pos for pointer tracking"

Absolute motion events already carry global coordinates (fader
session).

This reverts commit 3dc05a0a89f00e40d194e7d895b525b405f57f7e.

Issue #5501
This commit is contained in:
Christian Helmuth 2025-04-02 16:06:12 +02:00 committed by Norman Feske
parent 33fab30a1f
commit 0736db0863

View File

@ -977,7 +977,7 @@ struct Sculpt::Main : Input_event_handler,
void handle_input_event(Input::Event const &ev) override
{
ev.handle_absolute_motion([&] (int x, int y) {
_pointer_pos.construct(x + _screen_pos.x, y + _screen_pos.y); });
_pointer_pos.construct(x, y); });
Keyboard_focus_guard focus_guard { *this };