Bug 524499 - Shape Submenu overflows outside the screen when using rectangle mode near the edge of the screen
Summary: Shape Submenu overflows outside the screen when using rectangle mode near the...
Status: RESOLVED FIXED
Alias: None
Product: Spectacle
Classification: Applications
Component: General (other bugs)
Version First Reported In: 6.7.4
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Noah Davis
URL:
Keywords:
: 522472 (view as bug list)
Depends on:
Blocks:
 
Reported: 2026-08-20 17:14 UTC by m.c_pavel@hotmail.com
Modified: 2026-09-10 22:14 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 6.8.0
Sentry Crash Report:


Attachments
photo of the bug. (982.72 KB, image/jpeg)
2026-08-21 09:44 UTC, m.c_pavel@hotmail.com
Details
Display config (63.01 KB, image/png)
2026-09-01 21:38 UTC, m.c_pavel@hotmail.com
Details

Note You need to log in before you can comment on or make changes to this bug.
Description m.c_pavel@hotmail.com 2026-08-20 17:14:22 UTC
DESCRIPTION

When you want to include a shape in the print screen, when you press it the submenu apears on abobe the spectacle menu so I can't change the shape.

STEPS TO REPRODUCE
1. Print screen a rectangle close to the top of the screen.
2. Press shape button
3. 

OBSERVED RESULT
Shape options above the menu outside the screen

EXPECTED RESULT
Open on the right?

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.7.4
KDE Frameworks Version: 6.28.0
Qt Version: 6.11.1
Kernel Version: 7.1.5-arch1-2 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 9800X3D 8-Core Processor
Memory: 32 GiB of RAM (30.4 GiB usable)
Graphics Processor 1: NVIDIA GeForce RTX 4090/PCIe/SSE2
Graphics Processor 2: NVIDIA GeForce RTX 4090/PCIe/SSE2
Manufacturer: ASRock
Product Name: B650 PG Lightning
Comment 1 TraceyC 2026-08-20 19:14:42 UTC
I'm not able to reproduce this in Plasma built from git-master or Plasma 6.7.4 on Solus.
When I click the rectangle or ellipse icons in the print screen chooser, with the rectangle at the top of the screen, the menu appears below it

Can you take a picture of the bugged state with a phone, so I can make sure I'm doing the same thing you are? Thanks.
Comment 2 m.c_pavel@hotmail.com 2026-08-20 19:28:26 UTC
I added a attachment to the bug report. But here is the same picture.

Continuação de um bom trabalho!
Pavel Tomescu
________________________________
From: TraceyC <bugzilla_noreply@kde.org>
Sent: Thursday, 20 August 2026 20:14:42
To: m.c_pavel@hotmail.com <m.c_pavel@hotmail.com>
Subject: [Spectacle] [Bug 524499] Shape Submenu overflows outside the screen when using rectangle mode near the edge of the screen

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

TraceyC <kdedev@tlcnet.info> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |WAITINGFORINFO
                 CC|                            |kdedev@tlcnet.info
            Summary|Shape Submenu overflows     |Shape Submenu overflows
                   |outside the screen          |outside the screen when
                   |                            |using rectangle mode near
                   |                            |the edge of the screen
           Platform|Other                       |CachyOS
             Status|REPORTED                    |NEEDSINFO

--- Comment #1 from TraceyC <kdedev@tlcnet.info> ---
I'm not able to reproduce this in Plasma built from git-master or Plasma 6.7.4
on Solus.
When I click the rectangle or ellipse icons in the print screen chooser, with
the rectangle at the top of the screen, the menu appears below it

Can you take a picture of the bugged state with a phone, so I can make sure I'm
doing the same thing you are? Thanks.

--
You are receiving this mail because:
You reported the bug.
Comment 3 Noah Davis 2026-08-20 22:44:22 UTC
Attach a screenshot of your display configuration system settings. It might be related to a known issue with non-rectangular monitor layouts.
Comment 4 m.c_pavel@hotmail.com 2026-08-21 09:44:02 UTC
Created attachment 195325 [details]
photo of the bug.

Monitor: HP OMEN 34c
Resolution: 3440 x 1440 px
Refresh: 165Hz
Comment 5 m.c_pavel@hotmail.com 2026-08-21 09:48:48 UTC
The bug occurs when the top printscreen rectangle is around the search bar of a browser or below the search bar of the setting menu as is in the image shared.
Comment 6 Noah Davis 2026-09-01 20:42:12 UTC
I need a screenshot of your display configuration system settings, not a screenshot of the bug.
Comment 7 m.c_pavel@hotmail.com 2026-09-01 21:38:08 UTC
Created attachment 195681 [details]
Display config
Comment 8 Noah Davis 2026-09-02 03:48:38 UTC
You only have one screen and you're using 100% scale, so this is not caused by a known issue. I've managed to reproduce it. it seems like there is a small area near the top where the logic to flip the toolbar positions doesn't activate.
Comment 9 Mirko Laruina 2026-09-04 15:40:27 UTC
The issue seems to occur when there is enough space to show the toolbar, but not enough for the sub-menu. 
From looking at the code, the toolbar computes its vertical alignment using only its own height and the sub-menu then blindly follows that direction.
Spectacle could either compute the toolbar alignment using the overall height or have the sub-menu decide its own direction
Comment 10 Bug Janitor Service 2026-09-04 16:12:39 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/spectacle/-/merge_requests/583
Comment 11 Mirko Laruina 2026-09-09 21:12:23 UTC
*** Bug 522472 has been marked as a duplicate of this bug. ***