Bug 449673 - wrong coordinates on wacom when window is moved to positions other than 0,0
Summary: wrong coordinates on wacom when window is moved to positions other than 0,0
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Tablets (tablet issues are only very rarely bugs in Krita!) (show other bugs)
Version: 5.0.0
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2022-02-05 23:37 UTC by Evren
Modified: 2022-02-10 12:51 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Evren 2022-02-05 23:37:52 UTC
SUMMARY
Normally wacom tablet draws fine if window position is 0,0 aka top left, if we move the window to another location, mouse arrow moves normally, but the krita windows do not get the coordinates correctly, i have attached a video to demonstrate this behavior very clearly, this behavior is same in all krita main and sub windows. Interestingly drawing area appears to be correctly get coordinates, but toolbars, menus and all other things are affected. Mouse and cursor arrow is not affected by this bug, only internal coordinates in krita windows are wrong.

STEPS TO REPRODUCE
1. New image
2. Move krita window away from top left corner
3. Try to aim your cursor with tablet and press tool buttons menus and other things, other than drawing area

OBSERVED RESULT
Your wacom will click to toolbars at the wrong coordinates and correct coordinates will not work.

EXPECTED RESULT
Wacom should be able to click every tool and button with correct mouse position

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.15.12-1-Manjaro
KDE Plasma Version: 5.23.4
KDE Frameworks Version: 5.89.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
I use 4K monitor with 3840x2160 resolution and 150% scaling set on KDE Display Settings, but krita somehow detect it as  lower resolution, i do not know the reason:
Display Information
Number of screens: 1
	Screen: 0
		Name: HDMI-A-0
		Depth: 24
		Scale: 1.5
		Resolution in pixels: 2560x1440
		Manufacturer: Samsung Electric Company
		Model: U28E590-
		Refresh Rate: 60
Comment 1 Halla Rempt 2022-02-06 10:04:23 UTC
I cannot reproduce that on KDE Neon with the latest 5.0 appimage with KDE plasma and display scaling set to 1.5. Note that fractional display scaling is really badly supported in X11 -- and of course, that the application sees the scaled pixels, so if you divide 3840 by 1.5, you will get 2560 and that's what the application sees.

Are you using a distro build or the appimage? If the distro build, please test with the appimage.
Comment 2 Evren 2022-02-10 10:41:40 UTC
i am sorry attaching video was not possible, i didn't know. how can i show it to you?
i used manjaro kde iso from manjaro webpage to install it on my computer.
i used pacman to install krita on my computer.
is your krita help->show system info for bugs, shows resolution at bottom of the result correctly even when it is scaled 150% ?
Comment 3 Evren 2022-02-10 10:55:16 UTC
Bug seems fixed on this appimage:
krita-5.0.2-alpha-c4bf113-x86_64.appimage
Krita system information still shows resolution as 2560x1440, but wacom bug is not exist anymore.
Thanks for your efforts.
Comment 4 Evren 2022-02-10 11:30:44 UTC
I can confirm this bug is exist in manjaro's distro built krita, and it is not exist in appimages, same versions compared.
Where can this error from be?
I have fully upgraded my manjaro with pacman -Syuu and using latest stable kernel at the time i am testing those two versions.
Comment 5 Halla Rempt 2022-02-10 12:51:37 UTC
Probably a bug introduced in Qt 5.15.