Bug 504338 - Full-screen overlay remains visible while Save As dialog is open, with consequences that can range from "a little odd" to "catastrophic"
Summary: Full-screen overlay remains visible while Save As dialog is open, with conseq...
Status: RESOLVED DUPLICATE of bug 501516
Alias: None
Product: Spectacle
Classification: Applications
Component: General (other bugs)
Version First Reported In: 6.3.90
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Noah Davis
URL:
Keywords: multiscreen, wayland-only
Depends on:
Blocks:
 
Reported: 2025-05-16 15:08 UTC by yaroslavfis4
Modified: 2025-05-28 17:40 UTC (History)
2 users (show)

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


Attachments
Screenshot showing the stuck overlay and save dialog behavior. (378.38 KB, image/jpeg)
2025-05-16 15:08 UTC, yaroslavfis4
Details
second screen (244.03 KB, image/jpeg)
2025-05-16 15:09 UTC, yaroslavfis4
Details

Note You need to log in before you can comment on or make changes to this bug.
Description yaroslavfis4 2025-05-16 15:08:45 UTC
Created attachment 181387 [details]
Screenshot showing the stuck overlay and save dialog behavior.

### SUMMARY
Spectacle freezes after selecting "Save As" during area screenshot. The selected screenshot region stays on screen, a file save dialog appears behind it, and the application becomes completely unresponsive. It cannot be closed or interacted with in any way (Esc, Alt+F4 do not work). Additionally, on a multi-monitor setup, the selected area is also shown on the second screen (see screenshot 2).

### STEPS TO REPRODUCE
1. Press the hotkey to activate "Rectangular Region" screenshot in Spectacle  
2. Select an area on the screen  
3. Click the "Save As" button  
4. Observe the application state

### OBSERVED RESULT
- The selected region overlay stays visible and doesn't disappear  
- A file save dialog appears **behind** the overlay  
- Spectacle becomes completely unresponsive  
- Cannot be closed with Esc, Alt+F4, or any interaction  
- On multi-monitor setups, the selected region is also duplicated on the second screen

### EXPECTED RESULT
- Selected region overlay should disappear after clicking "Save As"  
- File save dialog should appear normally and be interactable  
- Application should remain responsive

### SOFTWARE/OS VERSIONS

Operating System: openSUSE Tumbleweed 20250508  
KDE Plasma Version: 6.3.90  
KDE Frameworks Version: 6.15.0  
Qt Version: 6.9.0  
Kernel Version: 6.14.5-1-default (64-bit)  
Graphics Platform: Wayland  

### ADDITIONAL INFORMATION
- GPU: NVIDIA GeForce GTX 1060 3GB  
- CPU: AMD Ryzen 5 5500 ×12  
- RAM: 16 GiB  
- System: MSI MS-7C56  
- Problem occurs **consistently** under Wayland  
- A screenshot showing the second screen behavior is attached
Comment 1 yaroslavfis4 2025-05-16 15:09:24 UTC
Created attachment 181388 [details]
second screen
Comment 2 Nate Graham 2025-05-16 15:59:00 UTC
This should be fixed with https://invent.kde.org/graphics/spectacle/-/commit/29d52422bd8153be721b08b83cbcb48e382a88ca, which was merged a few days after the build that you're using.

Once you update to build 20250514 or newer, let us know if it still happens.
Comment 3 yaroslavfis4 2025-05-16 16:14:47 UTC
(In reply to Nate Graham from comment #2)
> This should be fixed with
> https://invent.kde.org/graphics/spectacle/-/commit/
> 29d52422bd8153be721b08b83cbcb48e382a88ca, which was merged a few days after
> the build that you're using.
> 
> Once you update to build 20250514 or newer, let us know if it still happens.


I have updated to openSUSE Tumbleweed 20250515.
Spectacle version is 6.3.90.
The issue still occurs exactly as described.
Comment 4 Nate Graham 2025-05-19 21:43:29 UTC
You're right, I can still reproduce it too — at least as long as the file dialog is open. However for me the dialog appears in front of the overlay and I can interact with it and choose a file location to make the overlay disappear.

So it seems like there are two issues here:
1. The overlay should probably disappear the moment you Save As
2. On your system, the file dialog appears too low in the stacking order

We should probably fix #1 regardless. #2 may be a local issue on your machine, especially if you have any window rules or non-default  click or focus settings.
Comment 5 yaroslavfis4 2025-05-20 05:01:47 UTC
(In reply to Nate Graham from comment #4)
> You're right, I can still reproduce it too — at least as long as the file
> dialog is open. However for me the dialog appears in front of the overlay
> and I can interact with it and choose a file location to make the overlay
> disappear.
> 
> So it seems like there are two issues here:
> 1. The overlay should probably disappear the moment you Save As
> 2. On your system, the file dialog appears too low in the stacking order
> 
> We should probably fix #1 regardless. #2 may be a local issue on your
> machine, especially if you have any window rules or non-default  click or
> focus settings.

I checked on a laptop with Intel graphics where everything works as it should, but it also seems to want to hang. In theory, everything worked fine before(6.3 plasma). Is this related to the graphics device?
Comment 6 Noah Davis 2025-05-28 11:52:11 UTC
Marking this as a duplicate since it's mostly a duplicate issue, but there will be a commit about the secondary issue CC'd to this report.

*** This bug has been marked as a duplicate of bug 501516 ***
Comment 7 Noah Davis 2025-05-28 17:39:28 UTC
Git commit 53fb51f40146d8dd02a1c8a3c8635f8cb5509928 by Noah Davis.
Committed on 28/05/2025 at 11:48.
Pushed by ndavis into branch 'master'.

Hide capture windows before deleting them when accepting

Prevents them from being visible in the background when using Save As.

M  +1    -0    src/SpectacleCore.cpp

https://invent.kde.org/graphics/spectacle/-/commit/53fb51f40146d8dd02a1c8a3c8635f8cb5509928
Comment 8 Noah Davis 2025-05-28 17:40:09 UTC
Git commit 606581c1ad90d2dce186ec8437c4bdf20e4039f8 by Noah Davis.
Committed on 28/05/2025 at 17:40.
Pushed by ndavis into branch 'Plasma/6.4'.

Hide capture windows before deleting them when accepting

Prevents them from being visible in the background when using Save As.

(cherry picked from commit 53fb51f40146d8dd02a1c8a3c8635f8cb5509928)

Co-authored-by: Noah Davis <noahadvs@gmail.com>

M  +1    -0    src/SpectacleCore.cpp

https://invent.kde.org/graphics/spectacle/-/commit/606581c1ad90d2dce186ec8437c4bdf20e4039f8