SUMMARY When I launch Spectacle with PrintScreen, do my thing and then use escape to close the window, the window underneath receive the KeyRelease and exit fullscreen when it’s e.g. a fullscreen video on Youtube or Netflix. STEPS TO REPRODUCE 1. Open a video on fullscreen on Youtube 2. Invoke Spectacle with a keyboard shortcut 3. Use the escape key to close Spectacle OBSERVED RESULT Spectacle closes and the Youtube video exit fullscreen. EXPECTED RESULT Spectacle closes and the Youtube video stays on fullscreen. SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 5.20.2 KDE Frameworks Version: 5.75.0 Qt Version: 5.15.1
Can confirm with Netflix open in Vivaldi browser.
Can also confirm. This is most likely an issue deeper in the stack than Spectacle itself, but I'm not sure where.
A possibly relevant merge request was started @ https://invent.kde.org/graphics/spectacle/-/merge_requests/157
(In reply to Nate Graham from comment #2) > Can also confirm. This is most likely an issue deeper in the stack than > Spectacle itself, but I'm not sure where. It may fundamentally be a problem with the environment and not the application. If the window is closed on press, how can it accept a key release? It is gone, so the window underneath gets the key release event.
Is this X11-only? I've tested this on Wayland and can't reproduce it. If so, I guess it's one of those "Can't fix on X11, already fixed on Wayland" bugs.
(In reply to Nate Graham from comment #5) > Is this X11-only? I've tested this on Wayland and can't reproduce it. > > If so, I guess it's one of those "Can't fix on X11, already fixed on > Wayland" bugs. I couldn't reproduce it on Wayland just now. It's possible that it is fixed only on Wayland because KWin has a lot more authority there.
It's also reproducible with Xwayland clients in a wayland session. Reopening because it's not fixed.
A possibly relevant merge request was started @ https://invent.kde.org/graphics/spectacle/-/merge_requests/226
Git commit 2af57799757a8f472a3b7615adeb5336d3bed292 by Noah Davis. Committed on 14/04/2023 at 17:19. Pushed by ndavis into branch 'master'. Fix quitting Spectacle with Escape affecting windows below it Previously, if you pressed Escape to close Spectacle when a fullscreen video in Firefox was underneath, the release of Escape would also cancel the fullscreen state of the video. Basically, Spectacle was no longer there to accept the Escape release event, so it went to Firefox. I think this is fundamentally an upstream issue in Qt, KWin or X11 (intentional or not), but we're fixing it here because we can. What and where the correct upstream behavior should be is also a complex and highly debatable topic. M +16 -14 src/Gui/SpectacleWindow.cpp M +2 -0 src/Gui/SpectacleWindow.h https://invent.kde.org/graphics/spectacle/commit/2af57799757a8f472a3b7615adeb5336d3bed292
Git commit 4c18dc46d84d60217653c70060b6bd7fa352e091 by Noah Davis. Committed on 14/04/2023 at 17:33. Pushed by ndavis into branch 'release/23.04'. Fix quitting Spectacle with Escape affecting windows below it Previously, if you pressed Escape to close Spectacle when a fullscreen video in Firefox was underneath, the release of Escape would also cancel the fullscreen state of the video. Basically, Spectacle was no longer there to accept the Escape release event, so it went to Firefox. I think this is fundamentally an upstream issue in Qt, KWin or X11 (intentional or not), but we're fixing it here because we can. What and where the correct upstream behavior should be is also a complex and highly debatable topic. (cherry picked from commit 2af57799757a8f472a3b7615adeb5336d3bed292) M +16 -14 src/Gui/SpectacleWindow.cpp M +2 -0 src/Gui/SpectacleWindow.h https://invent.kde.org/graphics/spectacle/commit/4c18dc46d84d60217653c70060b6bd7fa352e091