Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
6.9.0 Beta1, 6.9.0 Beta2
-
None
-
kwin wayland
-
-
f6cdb37f6 (dev), 304bf0ef6 (6.9), 4c8a7a77b (6.8)
Description
On wayland (kde), `QCursor::pos()` always returns `(0,0)`, until the first mouse click or mouse move.
Running the program with `WAYLAND_DEBUG=1`, I can verify that `wl_pointer enter` is generated with the correct cursor position. Tabbing in and tabbing out, I see the correct `wl_pointer` enter and leave events, but `QCursor::pos()` still reports `(0, 0)`. The correct cursor positions are reported after mouse press, or mouse move.
Example code is attached.
I did not test on earlier Qt versions.
Attachments
For Gerrit Dashboard: QTBUG-133204 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
619652,5 | client: update mouse position on enter | dev | qt/qtwayland | Status: MERGED | +2 | 0 |
621264,2 | client: update mouse position on enter | 6.9 | qt/qtwayland | Status: MERGED | +2 | 0 |
621320,2 | client: update mouse position on enter | 6.8 | qt/qtwayland | Status: MERGED | +2 | 0 |