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: RESOLVED FIXED
Alias: None
Product: Spectacle
Classification: Applications
Component: General (other bugs)
Version First Reported In: 23.04.0
Platform: Other Linux
: HI minor
Target Milestone: ---
Assignee: Noah Davis
URL:
Keywords: multiscreen
: 469513 469668 472151 479212 486165 487870 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-04-22 07:54 UTC by Salvatore
Modified: 2025-12-23 03:24 UTC (History)
22 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented 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
Comment 16 goo 2025-04-08 17:24:21 UTC
can confirm with a monitor setup in an "L" shape where the side monitor is taller than the center monitor.... there is "unused" screen real estate above the center monitor you can only capture by taking a full destop image but windows in that part of the "screen" cannot be seen.

i don't think it's a bug, as much as it's just a limitation forcing every multi monitor setup into a rectangular box, some of which you can't see.
Comment 17 goo 2025-04-08 17:25:18 UTC
can confirm with a monitor setup in an "L" shape where the side monitor is taller than the center monitor.... there is "unused" screen real estate above the center monitor you can only capture by taking a full destop image but windows in that part of the "screen" cannot be seen.

i don't think it's a bug, as much as it's just a limitation forcing every multi monitor setup into a rectangular box, some of which you can't see.
Comment 18 pallaswept 2025-04-08 20:38:00 UTC
That is the behaviour I described in comment 5:
> 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.

For an example of this same bug in a different app, change kate's setting, "Maximum number of entries in recent file list" to something big enough to not fit on screen (and also, open enough files to fill it up). 

When you do this, normally, the menu will be restricted to the size of your display, with scroll buttons on the ends. Except, it will be broken for desktops like ours, and the scroll button won't appear as required, instead the menu will roll off into that inaccessible invisible area of desktop which is not on any display.

If you do this on the tallest of your displays, it will work as expected and you'll see the scroll buttons on each end. If you have offset displays, it will only show the scroll buttons on the top of the highest displays and the bottom of the lowest. 

ie, it doesn't make the menus fit on screen, it makes the menus fit on *desktop*.

I'd say it's pretty clearly a bug, when a menu which is intended to be seen and clicked on, can't be seen or clicked on :D
Comment 19 madness742 2025-06-19 08:30:38 UTC
This unfortunately still happens with the new Spectacle 6.4.0 UI.

System information:
Linux/KDE Plasma: Fedora Linux 42
KDE Plasma Version: 6.4.0
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.1
Comment 20 Nate Graham 2025-06-19 21:18:17 UTC
*** Bug 469668 has been marked as a duplicate of this bug. ***
Comment 21 Nate Graham 2025-06-19 21:18:24 UTC
*** Bug 469513 has been marked as a duplicate of this bug. ***
Comment 22 tomashnyk 2025-10-18 13:56:27 UTC
*** Bug 487870 has been marked as a duplicate of this bug. ***
Comment 23 Nate Graham 2025-10-30 19:17:49 UTC
*** Bug 486165 has been marked as a duplicate of this bug. ***
Comment 24 Kalcifer 2025-11-01 05:25:50 UTC
I have the same issue when dragging a rectangular bounding box. 1920x1080 monitor on left and centered vertically to a 2560x1440 monitor on the right.

Spectacle: v6.5.1
DE: KDE Plasma v6.5.1, Wayland
OS: Arch Linux, Kernel v6.12.56-1-lts
Comment 25 tomashnyk 2025-12-20 11:03:20 UTC
Should be fixed by: https://invent.kde.org/plasma/spectacle/-/merge_requests/498
Comment 26 pallaswept 2025-12-20 23:22:32 UTC
(In reply to tomashnyk from comment #25)
> Should be fixed by:
> https://invent.kde.org/plasma/spectacle/-/merge_requests/498

Looks like not quite, but we're trying! Probably just needs someone to confirm the suggestion works, and if so, merge it.

If nobody else can do it first, I'll do the confirmation of the patch as soon as I'm able. I have an outage standing in my way at the moment but hopefully it won't be long.
Comment 27 pallaswept 2025-12-21 15:43:29 UTC
Mario crushed it with https://invent.kde.org/plasma/spectacle/-/merge_requests/500
Comment 28 goo 2025-12-21 16:24:58 UTC
*almost crushed it.

isn't there a way to keep either of the menus from obscuring the selected area? Why can't they be stacked above or below the area rather than have one of them in the way of what you are trying to capture (and possibly annotate behind the annotations menu)?

my current plasma 5 version will place both menus outside of the rectangular zone and either stack them above or below or place one above and one below depending on the room... the only problem with mine is that it doesn't respect screen boundries, only the desktop boundary.
Comment 29 pallaswept 2025-12-22 00:31:43 UTC
(In reply to goo from comment #28)
> *almost crushed it.

* crushed it
I meant what I said, your correction is incorrect.

A reminder that this bug has been annoying us for several years now, and this patch kindly provided by Mario DOES fix it.

> isn't there a way to keep either of the menus from obscuring the selected area?

Theoretically yes but it's not nearly as simple as you make out. Think about the various permutations involved here. If you've having trouble imagining some, just look at these two MRs.
I do agree with you that it's annoying when the toolbar obscures the thing I'm using it for, but what you have there is a feature request threatening to bikeshed this fix.

> the only problem with mine is that it doesn't respect screen boundries, only the desktop boundary.

That is the bug we're here to fix and Mario did. Let's show some love.
Comment 30 goo 2025-12-22 01:15:17 UTC
fair enough, i'll make a new bug report when the time comes.... hopefully mario will still be fresh enough on it to see the solution.
Comment 31 pallaswept 2025-12-22 01:30:56 UTC
(In reply to goo from comment #30)
> fair enough, i'll make a new bug report when the time comes.... hopefully mario will still be fresh enough on it to see the solution.

Please do link it here, I imagine that most of us share your thoughts on this. Maybe we can pitch in when the time comes.
Comment 32 Noah Davis 2025-12-22 12:20:43 UTC
Fixed by https://invent.kde.org/plasma/spectacle/-/merge_requests/500
Comment 33 Mario Roß 2025-12-22 15:38:50 UTC
(In reply to goo from comment #28)
> *almost crushed it.
> 
> isn't there a way to keep either of the menus from obscuring the selected
> area? Why can't they be stacked above or below the area rather than have one
> of them in the way of what you are trying to capture (and possibly annotate
> behind the annotations menu)?
> 
> my current plasma 5 version will place both menus outside of the rectangular
> zone and either stack them above or below or place one above and one below
> depending on the room... the only problem with mine is that it doesn't
> respect screen boundries, only the desktop boundary.

I agree that would be more convenient, and I’d be interested to see exactly how Plasma 5 handled it. In theory, it should be possible to dynamically reposition the toolbars based on the screen layout and the selected area, but we would need a solid plan for how to handle this gracefully.
There are just some edge cases where I can't currently picture a good solution: 
A) The selection covers the entire screen -> Should the toolbars overlap the content, or appear on another screen? What if the selection covers multiple/all screens?
B) There is only space on the left/right side -> Should they move there?

I'm not a UI designer, but I worry that having toolbars appear in seemingly random locations depending on the context might be confusing.

BTW: You can actually drag and drop the toolbars to move them out of the way. Obviously not the most elegant solution, but as a non-power user myself, I find it quite workable.
Comment 34 goo 2025-12-23 03:24:07 UTC
(In reply to Mario Roß from comment #33)

> I agree that would be more convenient, and I’d be interested to see exactly
> how Plasma 5 handled it. 

on my plasma 5 both tool bars act as a group and are either above or below the selected area unless there is no room in either location for the group and then both overlap the selected area..

> A) The selection covers the entire screen -> Should the toolbars overlap the
> content

yes, in that case they should overlap the selected area.

> B) There is only space on the left/right side -> Should they move there?

no, they are better either above or below the selection, however,  if there is room for at least ONE of them to be outside the selected area, then i would prefer that over keeping them together as a group and overlapping.

> BTW: You can actually drag and drop the toolbars to move them out of the
> way. 

that's a game changer... i cannot drag my plasma 5 menus and did not know about this feature.