| Summary: | In wayland, "Mirror View Around Cursor" action only uses mouse's last position but not tablet's | ||
|---|---|---|---|
| Product: | [Applications] krita | Reporter: | Ming Chuan <ming> |
| Component: | * Unknown | Assignee: | Krita Bugs <krita-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | git master (please specify the git hash!) | ||
| Target Milestone: | --- | ||
| Platform: | NixOS | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/packaging/krita-deps-management/-/commit/228b821a90c989521c812c52fd86fd899d7c33b0 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
Ming Chuan
2025-05-19 21:03:22 UTC
Note that in reproduction step 1, the mouse should be moved close the left edge of canvas, but not all the way to the left and hover over krita's toolbox UI. If the mouse is hovering over toolbox UI befure drawing tablet pen is used, the canvas flip action is still wrong but it's wrong in some less obvious way. Git commit 228b821a90c989521c812c52fd86fd899d7c33b0 by Dmitry Kazakov. Committed on 14/02/2026 at 16:25. Pushed by dkazakov into branch 'transition.now/qt6'. [qt][wayland] Implement handling of tablet events in QWaylandCursor That fixes the work of QCursor::pos() when the user utilizes a tablet device. Related: bug 515618 M +1 -1 ext_qt/CMakeLists.txt https://invent.kde.org/packaging/krita-deps-management/-/commit/228b821a90c989521c812c52fd86fd899d7c33b0 A possibly relevant merge request was started @ https://invent.kde.org/graphics/krita/-/merge_requests/2647 Git commit db9704829ea1b0a3a5591a5ba1b4d8142d8125a0 by Dmitry Kazakov. Committed on 14/02/2026 at 16:54. Pushed by dkazakov into branch 'master'. Remove the usage of QCursor::pos() where we can The real fix for QCursor::pos() will land separately into our version of Qt6, but this patch will just make it work a little better with the vanilla Qt. In a lot of cases we do already have the cursor position in the event object, so we don't need to request it from QCursor. M +49 -4 libs/flake/KoPointerEvent.cpp M +3 -0 libs/flake/KoPointerEvent.h M +9 -28 libs/ui/input/KisPopupWidgetAction.cpp M +1 -1 libs/ui/kis_popup_palette.cpp M +1 -1 libs/ui/tool/kis_tool_freehand.cc M +5 -3 libs/ui/widgets/KoDualColorButton.cpp M +1 -1 plugins/tools/tool_transform2/kis_liquify_transform_strategy.cpp https://invent.kde.org/graphics/krita/-/commit/db9704829ea1b0a3a5591a5ba1b4d8142d8125a0 Git commit 43bc97d92636f79ddcbb916fbfa5f6f993209ca9 by Dmitry Kazakov. Committed on 14/02/2026 at 16:55. Pushed by dkazakov into branch 'krita/6.0'. Remove the usage of QCursor::pos() where we can The real fix for QCursor::pos() will land separately into our version of Qt6, but this patch will just make it work a little better with the vanilla Qt. In a lot of cases we do already have the cursor position in the event object, so we don't need to request it from QCursor. M +49 -4 libs/flake/KoPointerEvent.cpp M +3 -0 libs/flake/KoPointerEvent.h M +9 -28 libs/ui/input/KisPopupWidgetAction.cpp M +1 -1 libs/ui/kis_popup_palette.cpp M +1 -1 libs/ui/tool/kis_tool_freehand.cc M +5 -3 libs/ui/widgets/KoDualColorButton.cpp M +1 -1 plugins/tools/tool_transform2/kis_liquify_transform_strategy.cpp https://invent.kde.org/graphics/krita/-/commit/43bc97d92636f79ddcbb916fbfa5f6f993209ca9 |