-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot manipulate the pinned window using i3 shortcuts #2768
Comments
It has been a while since I've worked with i3, but I'm almost certain that this is an issue of your config and has nothing to do with Flameshot. Here is also a clean install VM of Manjaro i3 that I just did Peek.2022-07-07.17-42.mp4Also, logically how your computer deals with window has almost nothing to do with the application but rather your window manager. I'll close this for now. If you managed to reproduce this in a clean VM, please reopen the issue. Without reproducing an issue, it is very hard (if not impossible) to track it down and fix it. |
This is weird! When I do floating I can do all you want Peek.2022-07-08.12-35.mp4This is the XZ compressed of my VM. give it a try (perhaps using Please let me know when you have downloaded it so that I remove the file on my end. |
Yeah, I can see that yours is normal, no need to try it again, but mine isn't. Maybe leave it open for a while, perhaps it will be gone somehow or other people have this kind of issue as well. |
I have the same problem on dwm, and I found out this commit caused the issue. |
@mmahmoudian May I ask, what is your Flameshot version? I'm using v12.1.0 in all my 3 gifs, and I tried v11.0.0 which is a cache package file I haven't cleaned, it has the same issue. |
@c02y it should be only one version of 12.1.0 on snap which is visible in all the screen recordings the my previous comments, plus in the VM I shared. Perhaps the easiest is to check the videos. I am AFK and writing this from my phone |
same problem. OS: Arch 5.18.10-arch1-1; wm: i3-gaps; flameshot: v12.1.0 |
@c02y @gutyina70 @fsrzen Can any of you suggest a series of steps (preferably in firm of a script) that can install what's needed to reproduce this issue in a clean VM? As I mentioned and shown before it was not reproducible in a VM I created. Unless we cannot reproduce the issue, we cannot start investigating. @gutyina70 thanks for your comment, I have asked one of the devs to look into it and see if he can confirm this on his tilingwm |
The VMs in two gifs I posted earlier are both in VirtualBox not virt-manager. |
That is the exact reason that I asked for a script. This way the bugs and issues of the virtual machine software can be avoided. |
No script, simply install archlinux-i3/manjaro-i3 into VirtualBox and install flameshot package, nothing special. |
That's the problem. From where I stand, if flameshot works on manjaro-i3 of virtmanager (qemu), but does not work in manjaro-i3 of virtualbox, the issue is not coming from Flameshot. This is why I'm trying to have a method to reproduce this agnostic to any abstraction/virtualization layer effect. |
This bug didn't happen when I tried it on manjaro-i3, my assumption is some package fixes this issue that is installed on manajaro-i3, but not on our machines. |
To reproduce this issue on arch linux with dwm do the following: Install arch linux + xorgDownload the newest arch linux iso, run it in a VM
Go through the install process, and include xorg
Install dwm, st and flameshot
Reproduce flameshot issueIn dwm, press alt+shift+enter to open a terminal. Since we dont have dbus, run the flameshot daemon with |
I can confirm this issue using /archlinux-2022.07.01-x86_64.iso, instructions that @gutyina70 provided, and # dwm dependencies + flameshot
sudo pacman -Sy libxft libxinerama otf-fira-mono flameshot
# dwm install
curl -o dwm-6.3.tar.gz https://dl.suckless.org/dwm/dwm-6.3.tar.gz
tar xf dwm-6.3.tar.gz
cd dwm-6.3
sudo make install
cd ..
# st install
curl -o st-0.8.5.tar.gz https://dl.suckless.org/st/st-0.8.5.tar.gz
tar xf st-0.8.5.tar.gz
cd st-0.8.5
sudo make install
cd ..
# auto start dwm
echo "exec dwm" > ~/.xinitrc
echo 'if [ -z "${DISPLAY}" ]; then exec startx; fi' > ~/.bashrc
startx @gutyina70 thank you for writing those keybindings those the the first thing I used to change when ricing my DWM back in the day and they never got into my muscle memory. |
Can confirm this is also happening to me on DWM. |
I think this is related to the fact that the pins are not recognized as "real" windows. For instance I just found out that in KDE one cannot switch to a pinned screenshot with Alttab perhaps it is the same exact reason that i3 does not consider it as something that can be moved simply because it cannot get "focused" in a way. |
@AndreaMarangoni Considering that your recent contributions were around the pin, you might have a fresh memory and an idea on what can be the potential cause of this. |
@mmahmoudian the issue is consistent across multiple WMs, I'm using dwm here and can't manipulate the pinned window even in floating mode, it's as if it's completely invisible/non-existent to the WM for some reason. Got some details using |
@g-h-97 thanks for the info and investigation. I have also previously confirmed this on DWM, and another time on KDE X11. Let's see what other devs think |
I wrote a little higher, though I didn’t specify one detail. If I now put the previous version, then I get the opportunity to manage windows. If I install a new version on the same computer with the same environment, it is impossible to manage windows. |
I realize that the X11BypassWindowManagerHint flag was added to solve an issue but it would be nice if it was a configuration option at least (to make pinned windows "normal" windows or not, although Qt also has a couple of different concepts of window types, like popup and dialog). It looks like that flag has been added and removed in the past fwiw so it seems it affects a few different workflows. A workaround, now that we can saved pinned windows, is to save the pin to a file and open it in feh, or some other minimal image viewer, when I realize I want one to hang around long enough to be treated specially. Or (on X11) copy to clipboard and |
Seems another workaround you can do to get these pinned windows back under window manager control is to use xdotool to remove the override-redirect property. For example with |
…der linux (flameshot-org#2520)" This reverts commit 850260d. Fix for flameshot-org#2768 (but breaks another issue so dont merge upstream)
same problem on bspwm |
…der linux (flameshot-org#2520)" This reverts commit 850260d. Fix for flameshot-org#2768 (but breaks another issue so dont merge upstream)
Flameshot Version
12.1.0-1
Installation Type
Linux, MacOS, or Windows Package manager (apt, pacman, eopkg, choco, brew, ...)
Operating System type and version
Arch Linux 5.18.9-zen1-1-zen
Description
When I pin a screenshot, the pinned window cannot be manipulated by i3, such as
BTW:
Steps to reproduce
Screenshots or screen recordings
System Information
The text was updated successfully, but these errors were encountered: