MaartenBaert / ssr

SimpleScreenRecorder, a screen recorder for Linux
http://www.maartenbaert.be/simplescreenrecorder/
GNU General Public License v3.0
2.5k stars 288 forks source link

Cannot select rectangle after upgrade #908

Open hdrs opened 2 years ago

hdrs commented 2 years ago

I upgraded from ubuntu 18.04 to 20.04. I use xfce4 as my window manager.

SSR is now different version also, it now has these versions:

SimpleScreenRecorder 0.3.11 Compiled with GCC 9.3.0 Qt: header 5.12.5, lib 5.12.8 libavformat: header 58.29.100, lib 58.29.100 libavcodec: header 58.54.100, lib 58.54.100 libavutil: header 56.31.100, lib 56.31.100 libswscale: header 5.5.100, lib 5.5.100

When I try to click and sweep with the "Select rectangle" button I get no selection. After I click and drag with the cross cursor it does not sweep out an area at all.

In addition if I click "Select window" and click on a window it does not accept the selection and change the geometry.

I can change the geometry in the boxes and that works.

I have reported logs of bugs on other systems using SSR. I could probably screen record this effect if need be.

MaartenBaert commented 2 years ago

Please make a video, I haven't seen this before. Is everything else still working? I am using the latest XFCE4 without any problems, so I don't think the window manager is the problem.

hdrs commented 2 years ago

OK, I managed to use SSR to record trying to use SSR.

https://user-images.githubusercontent.com/20231698/131052726-9d643a5c-adce-47a7-a494-18a41de89df9.mp4

Does that help?

bduffany commented 2 years ago

I have the same problem on XFCE4 (no idea if it's related to XFCE or not though). When I mousedown to start dragging out a region, it immediately cancels, as though it hits an exception/error that is getting swallowed.

I cannot reproduce this 100% of the time -- sometimes it works reliably, sometimes it seems like it happens every other time I try to make a selection, sometimes it does not work at all during a session and I have to restart SSR and then maybe it starts working.

Are there any logs we could share that would help debug?

MaartenBaert commented 2 years ago

You could run SSR from a terminal to see all error messages, but there won't necessarily be any. The behavior you describe makes it sound like SSR is seeing a mouse button press immediately followed by a mouse button release, this could be some kind of window focus-related problem in the window manager.

@hdrs @bduffany Have either of you made any changes to your window manager settings, especially anything input-related or focus-related? Because I am unable to reproduce this on my setup.

hdrs commented 2 years ago

I use sloppy focus so I do not have to click in order to type into a window. That is a pretty standard thing and I was using it in the previous version also.

neverlistens commented 2 years ago

This worked for me For Mint20 Deselect "automatically give focus to newly created windows" (on window manger app) (focus tab)

I would guess that simplescreenrecorder is the, "Newly Created window"

hdrs commented 2 years ago

Thanks @neverlistens, this also works for me on xfce4/ubuntu server 20.04.

Though it is a workaround rather than a fix, as I guess I am quite used to new window focus going to the new window.

MaartenBaert commented 2 years ago

For me SSR is working correctly regardless of how I set "automatically give focus to newly created windows" in XFCE. It also works when 'focus follows mouse' is enabled, although in that case I can sometimes see the SSR window reappearing too early (while I am still making a selection). That doesn't really look like the problem you are describing though, but may be related.

I am using Arch though, so maybe Ubuntu has made some changes to their version of the window manager or X server. Has anyone encountered this problem on non-Ubuntu-based distributions?

MaartenBaert commented 2 years ago

@hdrs I see you are using a version of SSR which is outdated, can you try installing the PPA and updating to the latest SSR to see whether this changes anything? You should be able to do that with:

sudo apt-add-repository ppa:maarten-baert/simplescreenrecorder
sudo apt-get update
sudo apt-get upgrade
hdrs commented 2 years ago

OK, installed from ppa, now have versions like this:

SimpleScreenRecorder 0.4.4 Compiled with GCC 9.3.0 Qt: header 5.12.8, lib 5.12.8 libavformat: header 58.29.100, lib 58.29.100 libavcodec: header 58.54.100, lib 58.54.100 libavutil: header 56.31.100, lib 56.31.100 libswscale: header 5.5.100, lib 5.5.100

With "New window focus" checked, it is now worked where it previously did not.

Thanks.