Bug 468794 - Rectangular Region toolbars can appear off screen on multi-screen setup where not all screens share a baseline
Summary: Rectangular Region toolbars can appear off screen on multi-screen setup where...
Status: CONFIRMED
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: 23.04.0
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: Noah Davis
URL:
Keywords:
: 472151 479212 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-04-22 07:54 UTC by Salvatore
Modified: 2025-02-28 01:00 UTC (History)
12 users (show)

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


Attachments
Example (2.38 MB, image/png)
2023-04-22 07:54 UTC, Salvatore
Details
An annotated multi-monitor setup in which the bug presents (24.68 KB, image/png)
2025-02-14 19:03 UTC, Oliver Beard
Details
The toolbar only changes position on the right screen, when the rectangular area is dragged to the bottom of the screen. On the other displays, taking screenshots of the bottom part is impossible. (34.83 KB, image/png)
2025-02-16 10:46 UTC, Mario Ebenhofer
Details
Spectacle tooltip bug (2.63 MB, video/mp4)
2025-02-16 12:04 UTC, Oleg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Salvatore 2023-04-22 07:54:32 UTC
Created attachment 158311 [details]
Example

I updated to Kde Gear 23.04 yesterday and I really like the new spectacle, but I noticed a problem: when I take a screenshot with the rectangular region and capture an area of ​​the screen near the bottom of the screen, the annotations go below the screen

Operating System: Arch Linux 
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.9
Graphics Platform: X11
Comment 1 Nate Graham 2023-04-24 19:43:07 UTC
Cannot reproduce with a single screen; the toolbars switch positions and move to be above the region, rather than below it.

Can reproduce with a dual-screen setup where the screens don't share a baseline.
Comment 2 Oded Arbel 2024-04-08 15:24:39 UTC
*** Bug 479212 has been marked as a duplicate of this bug. ***
Comment 3 Oded Arbel 2024-04-08 15:24:52 UTC
*** Bug 472151 has been marked as a duplicate of this bug. ***
Comment 4 contact 2024-06-03 05:46:20 UTC
This bug currently affects my current setup where both monitors don't share a baseline.

I've included a video and screenshots on my KDE Forum post: 
https://discuss.kde.org/t/unexpected-capture-rectangular-region-behaviour-near-the-bottom-of-the-screen
Comment 5 pallaswept 2024-06-03 06:13:26 UTC
(In reply to contact from comment #4)
> I've included a video and screenshots on my KDE Forum post: 

Thanks for that!

I have been on the CC list for this bug, but just read in that thread that it is good to post if you have the problem, so I'm posting. 

I have a 1080p and a 1440p monitor, and whether they share the same upper or lower coordinates (so, even with the same baseline), I still see this bug. It appears to be that spectacle is selecting a toolbar position based on the desktop geometry rather than the display geometry, and consequently selects a location which is visible to the desktop but not the display.
Comment 6 pallaswept 2024-06-03 06:26:05 UTC
Apologies, I neglected to mention - I hope maybe it might help the devs to know that I see similar bugs elsewhere in KDE, for example in Kate's Recent Documents list (if you let it be long enough, it draws off-screen, but on-desktop). I've not had the opportunity to file any of these but I thought it might help track things down, if I mention that I don't see this exclusively in Spectacle. This may just be a coincidence, or maybe there's shared code, I can't say. Just letting you know :)
Comment 7 pallaswept 2024-06-05 14:19:14 UTC
My bad, I *do* have that Kate bug logged: https://bugs.kde.org/show_bug.cgi?id=485770

I can't be certain it's directly related, but... they sure act the same.

Firefox's 'All Tabs List' does this, too, but since it's not a KDE app I'm less inclined to draw a parallel... stranger things have happened, though.
Comment 8 nilskemail+kde 2024-06-05 22:19:13 UTC
This not only applies to the baseline but also the vertical bounds (e.g. small laptop display at the bottom and a larger display above it)
Comment 9 Phillip Schichtel 2024-10-10 16:52:21 UTC
This is still happening on KDE 6.2/Spectacle 24.08.2 (on Arch). I have 3 QHD screens side by side, one of them in portrait/vertical rotation. The controls are always placed correctly on the vertical monitor, on the other monitors they are placed of screen if my selection box reaches the lower-edge of the screen.
Comment 10 Oliver Beard 2025-02-14 19:03:38 UTC
Created attachment 178374 [details]
An annotated multi-monitor setup in which the bug presents

I've attached an image showing an example of a multi-monitor setup in which the bug is possible, annotated with an example selection area exhibiting the bug.
Comment 11 Mario Ebenhofer 2025-02-16 10:46:26 UTC
Created attachment 178431 [details]
The toolbar only changes position on the right screen, when the rectangular area is dragged to the bottom of the screen. On the other displays, taking screenshots of the bottom part is impossible.

I have the same issue on Plasma 6.3 on Fedora 41.
I can only take a screenshot of the bottom of the screen on the right-most screen in my attachment. On all other displays, the toolbar becomes unusable, when the rectangular region is dragged to the bottom of the screen.
Comment 12 Oleg 2025-02-16 12:04:41 UTC
Created attachment 178432 [details]
Spectacle tooltip bug

I can confirm this on Plasma 6.3
Spectacle should only take current monitor into account instead of whole display space.
Comment 13 Daniel 2025-02-19 08:13:01 UTC
I can confirm this behavior after moving to KDE neon 6.2 with Plasma 6.3.0 and Wayland I had to move from Flameshot to Spectacular.
Comment 14 Bug Janitor Service 2025-02-27 16:42:56 UTC
A possibly relevant merge request was started @ https://invent.kde.org/graphics/spectacle/-/merge_requests/443
Comment 15 Noah Davis 2025-02-28 01:00:48 UTC
Git commit 46378cd6f7f754fff87cd51bc7e724349014b66c by Noah Davis.
Committed on 27/02/2025 at 16:44.
Pushed by ndavis into branch 'master'.

Allow dragging rectangle mode toolbars when selection isn't actively changing

Not really a fix for the issue where toolbars can go out of bounds when the screens region is concave, but should make it easier to actually use the toolbars in that situation.

M  +1    -3    src/Gui/ImageCaptureOverlay.qml

https://invent.kde.org/graphics/spectacle/-/commit/46378cd6f7f754fff87cd51bc7e724349014b66c