Skip to content

Calculate cursor position relative to top-left corner of current screen

Oleg Solovyov requested to merge osolovyov/plasma-desktop:bug436216 into master

QCursor::pos() returns an absolute position of cursor, which is incorrect unless the screen's top-left corner is (0, 0). This is used when calculating position of the icon created on desktop.

BUG: 436216

Merge request reports