Bug 468794

Summary: Rectangular Region toolbars can appear off screen on multi-screen setup where not all screens share a baseline
Product: [Applications] Spectacle Reporter: Salvatore <sannythebest95>
Component: GeneralAssignee: Noah Davis <noahadvs>
Status: CONFIRMED ---    
Severity: minor CC: chermnykh2001, contact, kde, nate, nilskemail+kde, pallaswept, phillip, zocker
Priority: NOR    
Version: 23.04.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Example

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.