Closed pinsard closed 2 years ago
@pinsard didn't you mentioned in https://github.com/flameshot-org/flameshot/issues/2031#issuecomment-1013317610 that this is not a Flameshot issue? What is the difference between this new issue and the old one?
Yeah, I did. However, after my comment you mentioned another issue that presents the same behavior on Windows. I decided to wait for the final release of 11 and confirmed the issue persisted. Then I thought it might be better to raise an issue. What made me think of that was the last item in the Bug Fixes topic on the Release Notes for 11.0:
Fixed a problem with some window managers where Flameshot would lose focus and shortcuts would stop working.
Well, apparently Cosmic was not covered, maybe because there were no previous confirmation. I'm sorry if I tought it would be a problem caused by Cosmic (and probably it is) on the first place (because they're the ones who are messing around with Gnome), but if no one brings that to attention, it will probably become one of those situations that existes forever.
Now it is a matter of investigation and waiting. And funding. :(
This actually might already be resolved in upstreams. I do most of my Linux development on Arch and have basically every DE installed so I can test the latest and greatest DE's with Flameshot.
If I install the latest version of pop-shell for the AUR on top of the current version of Gnome on Arch, i cannot replicate this.
I can try PopOS 21.10 in a VM with the latest version of pop-shell if you hit a dead end.
Nah. Lemme do it. I'll install a nightly build or download and compile the source. What do you recommend?
On Arch i built from source. It's all typescript so it built really fast.
Compiled from source, still same behavior. But now I have the source code and will have a look at it. At the bare minumum, I'll learn something, for sure.
Flameshot v11.0.0 (5ab76e2) Compiled with Qt 5.15.2 linux: 5.15.11-76051511-generic pop: 21.10
I confirm that after a recent update from Pop!_OS, the issue was solved.
Flameshot About Flameshot v11.0.0 (5ab76e2) Compiled with Qt 5.15.2 linux: 5.15.15-76051515-generic pop: 21.10
$ uname -a
Linux lt-5 5.15.15-76051515-generic #202201160435~1642693824~21.10~97db1bb SMP Thu Jan 20 17:35:05 U x86_64 x86_64 x86_64 GNU/Linux
This update included a fix to the recently discovered CVE-2021-4034 - I saw "polkit" scrolling up during the upgrade. Anyways... as I didn't replace Flameshot and the shortcuts started to work again after the OS upgrade, it was probably something related to the tiling support, as I suspected since the beginning.
Closing the issue.
Flameshot Version
Flameshot v11.0.0 () Compiled with Qt 5.11.3 linux: 5.15.11-76051511-generic pop: 21.10
Installation Type
AppImage
Operating System type and version
Linux, Pop!_OS 21.10, Cosmic DE, X Window
Description
Tool shortcuts (arrow, rectangle etc) do work fine when tiling mode is turned off in Cosmic. When tiling is on, Flameshot reports the following message at the right bottom of the screen: Flameshot has lost focus. Keyboard shortcuts won't work until you click somewhere. It happens both with DEB and AppImage formats.
I did see a KDE related complaint, but that seems to be about starting Flameshot gui, not about tool shortcuts.
Steps to reproduce
Screenshots or screen recordings
No response
System Information