https://bugs.kde.org/show_bug.cgi?id=501177

--- Comment #8 from Ilia Kats <ilia-k...@gmx.net> ---
So I did some debugging, and I don't believe it's a problem in Spectacle: I
went as far back as commit 9952d507, and the issue is still present. I also
inserted some debug output to figure out what's going wrong. To understand the
outputs, here is my setup in detail:

laptop screen: 2880x1800, 150% scale, bottom
external screen: 3840x2160, 130% scale, top

and I'm trying to select a rectangular region on the top (external) screen.

- the viewport rectangles in ImageCaptureOverlay.qml are correct: QRectF(0, 0,
2954, 1662) and QRectF(560, 1662, 1920, 1200)
- the raw event->scenePosition() and the calculated scenePosition in
SelectionEditor.cpp::mousePressEvent are also correct: QPointF(1157,849) and
QPointF(1157,849)
- the calculated logical global mouse position (d->mousePos) is incorrect:
QPointF(1717,2511)
- turns out, the window position in the event itself
(item->window()->position()) is incorrect: QPoint(560,1662)

This only happens in the configuration described above, switching the positions
of the screens (laptop screen on top, external screen bottom) works correctly.
As far as I understand, item->window()->position() is coming directly from Qt,
so it's either a Qt or a kwin bug, I suppose. I'm still on Qt 6.8.2, haven't
tried with 6.9 yet.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to