flameshot-org / flameshot

Powerful yet simple to use screenshot software :desktop_computer: :camera_flash:
https://flameshot.org
GNU General Public License v3.0
24.86k stars 1.6k forks source link

Broken cursor after screenshot #1824

Open santilococo opened 3 years ago

santilococo commented 3 years ago

Flameshot version Flameshot v0.10.1 Compiled with Qt 5.15.2

Describe the bug Every time I launch the flameshot gui, my terminal cursor breaks.

To Reproduce Just launch flameshot gui and copy to clipboard.

Expected behavior Normal behavior:

Unexpected behavior:

System Information Linux archLinux 5.13.9-arch1-1

mmahmoudian commented 3 years ago

I remember that this was mentioned in another thread but after 10 minutes of searching I couldn't find it.

Anyways, there are few more things that I need you to report as this is not reproducible on my Manjaro machine

Tell us:

santilococo commented 3 years ago

Hi!

The cursor will be broken throughout the life of the terminal. If I open vim, it will be like this as well https://i.imgur.com/tFLDpKT.png and it will not change when going to normal mode or insert mode for example. It is really annoying.

veracioux commented 3 years ago

I have the same problem. (Arch, alacritty)

The problem seems to be that after flameshot closes, alacritty does not receive focus again. I would have to click on another window and then on alacritty again to focus it properly.

I have a suspicion that this is caused by the window manager (i3 in my case), specifically because it is a tiling one.

@mmahmoudian @santilococo Which WM/DE do you use?

santilococo commented 3 years ago

Hi. I also use a tiling window manager (DWM).

mmahmoudian commented 3 years ago

I use KDE Plasma on one computer and AwesomeWM on the other and on both I use Alacritty and on Plasma I also use Yakauke and Konsole as well. On Plasma I definitely do not have this issue. I will re-check AwesomeWM and post here, but as far as I can recall i don't have any issue there with Alacritty either.

santilococo commented 3 years ago

OK. TY.

santilococo commented 3 years ago

@veracioux Indeed. It seems to be a 'focus' problem. If I manually focus the terminal, the cursor will fix.

mmahmoudian commented 3 years ago

I confirm that this is the issue with AwesomeWM and Alacritty and Konsole,

Alacritty:

https://user-images.githubusercontent.com/390889/133479266-8f024520-6f98-4677-b427-26bc062ecee8.mp4

Konsole:

https://user-images.githubusercontent.com/390889/133479262-01db2486-caea-4e3c-b00c-1557d86fac48.mp4

Flameshot v0.10.1 (a7e88e60) Compiled with Qt 5.15.2 linux: 5.14.0-0-MANJARO manjaro: unknown

mmahmoudian commented 3 years ago

This might be also related to #1694

borgmanJeremy commented 3 years ago

So this sounds like an upstream issue with awesomeWM?

mmahmoudian commented 3 years ago

@borgmanJeremy I don't know. If we manage to reproduce this is any other WM (other than DWM and AwesomeWM), then that proves the bug is on us I guess

Check this video:

https://github.com/flameshot-org/flameshot/issues/784#issuecomment-918221436

mohad12211 commented 3 years ago

784, #1694, and this issue are all the same problem for sure. focus is not set correctly after exiting. both me and @santilococo are dwm users and confirm this issue. also I faced it on bspwm. @sebw in #784 mentioned that he used bspwm. as a start I would like people to try this wrapper script. you need xdotool installed. it solved the issues for me (broken cursor and chrome menus) on dwm and bspwm. maybe we can figure something out after that?

sebw commented 3 years ago

I have the problem in both i3wm and bspwm.