Bug 484995

Summary: When taking rectangle screen shot, screen edge triggers should be blocked
Product: [Applications] Spectacle Reporter: Bernd Steinhauser <linux>
Component: GeneralAssignee: Noah Davis <noahadvs>
Status: RESOLVED FIXED    
Severity: normal CC: kde, nate
Priority: NOR Keywords: multiscreen
Version First Reported In: 24.02.1   
Target Milestone: ---   
Platform: Exherbo   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Bernd Steinhauser 2024-04-03 18:54:40 UTC
SUMMARY
When entering (rectanlge) screenshot mode, I don't think anybody would want to activate any of these effects, but rather just select the area they want to capture.
Thus, for the time until the selection was finished, spectacle should tell the kwin to block these as well as possibly other gesture-activated functions.
(That is, unless on some devices a gesture would be required to exit the selection mode?)

Note that I wasn't sure whether this classifies as a bug or a wishlist item. Personally I see it as the former, since in my opinion currently something is happening that really shouldn't be happening, but I could see why one would consider it just as a wish.
I also wasn't sure if this should be assigned to spectacle or some plasma component.

STEPS TO REPRODUCE
1. Systemsettings -> Mouse & Touchpad -> Screen Edges -> Setup some action there, e.g. "Overview"
2. Start spectacle's rectangle selection via hotkeys
3. Move the cursor towards the screen edge as configured previously

OBSERVED RESULT
The selected effect executes.

EXPECTED RESULT
Desktop should ignore screen edge and stay in selection mode.

SOFTWARE/OS VERSIONS
Operating System: Exherbo 
KDE Plasma Version: 6.0.3
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.3
Kernel Version: 6.7.11-amdgpu (64-bit)
Graphics Platform: Wayland
Processors: 32 × AMD Ryzen 9 5950X 16-Core Processor
Memory: 62.7 GiB of RAM
Graphics Processor: AMD Radeon RX 6600
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7C90
System Version: 1.0
Comment 1 Noah Davis 2024-04-03 19:03:50 UTC
On my 2 monitor setup, it seems that the screen edge hotspots are only triggerable when the spectacle window near a hotspot is not focused.
Comment 2 Bernd Steinhauser 2024-04-03 20:05:39 UTC
(In reply to Noah Davis from comment #1)
> On my 2 monitor setup, it seems that the screen edge hotspots are only
> triggerable when the spectacle window near a hotspot is not focused.

Hm, not quite sure what you mean. I'm using a 2 monitor setup and I've setup the upper left screen edge. No matter what window is focused, it always seems to trigger for me?
Comment 3 Noah Davis 2024-04-03 21:04:38 UTC
(In reply to Bernd Steinhauser from comment #2)
> (In reply to Noah Davis from comment #1)
> > On my 2 monitor setup, it seems that the screen edge hotspots are only
> > triggerable when the spectacle window near a hotspot is not focused.
> 
> Hm, not quite sure what you mean. I'm using a 2 monitor setup and I've setup
> the upper left screen edge. No matter what window is focused, it always
> seems to trigger for me?

Interesting. If you unplug one screen, are you unable to reproduce this bug? When I only have 1 screen, the top left hot corner stops doing anything as long as spectacle is focused. By the way, I am on Wayland like you.
Comment 4 Bernd Steinhauser 2024-04-04 14:57:19 UTC
I tried with a single screen and there I couldn't reproduce it or only if I used tricks like Alt+Tab to steal the focus away from spectacle.

Interestingly, when I went back to multiscreen (same setup as before), I couldn't reproduce it either anymore.
No idea what is different now.