#998168 Area selection doesn't always erase the selection rectangle

Package:
xfwm4
Source:
xfwm4
Description:
window manager of the Xfce project
Submitter:
Enrico Zini
Date:
2021-11-17 10:18:03 UTC
Severity:
normal
Tags:
#998168#5
Date:
2021-10-31 11:01:36 UTC
From:
To:
Hello,

thank you for maintaining scrot!

When selecting an area with scrot -s, the selection rectangle doesn't
always get erased as the rectangle is moved, resulting in a dirty
screenshot. See example attached.


Enrico

#998168#10
Date:
2021-10-31 20:06:29 UTC
From:
To:
Em dom., 31 de out. de 2021 às 08:03, Enrico Zini <enrico@debian.org> escreveu:

Hi Enico (my first AM!),

Thanks for your message. However, this behavior is not a specific
issue in scrot but in some window managers. The Gimp produces the same
effect when capturing an area in KDE/Plasma in some scenarios (Gimp:
File > Create > Screenshot > Select a screen area).

There are 2 workarounds to solve this problem. The safest one that should work:

scrot --select --freeze

Or using another selection mode:

scrot --select --line mode=edge

But this last one does not behave correctly with some CWM.

Please, let me know if these options solve your problem.

Cheers,

Eriberto

#998168#15
Date:
2021-11-10 20:29:53 UTC
From:
To:
Hi Enrico,

Do you have any news?

Cheers,

Eriberto


Em dom., 31 de out. de 2021 às 17:06, Eriberto Mota
<eriberto@debian.org> escreveu:

#998168#22
Date:
2021-11-11 13:03:14 UTC
From:
To:
Hi Eriberto,

it looks like both the workarounds that you suggested are working
(window manager is xfwm4).

I guess scrot did all it could to manage the situation, and I wonder if
the bug should just be closed or reassigned to xfwm4


Enrico

#998168#27
Date:
2021-11-11 13:23:19 UTC
From:
To:
Em qui., 11 de nov. de 2021 às 10:15, Enrico Zini <enrico@debian.org> escreveu:

Thanks Enrico.

This is a bit of a complicated decision because several WM have
similar problems. Maybe it is a problem in an intermediate lib.

I support any decision from you.

About your question, I will suggest in the project to create a FAQ.

Thanks a lot Enrico.

Cheers,

Eriberto

#998168#32
Date:
2021-11-17 10:15:42 UTC
From:
To:
Control: reassign -1 xfwm4

Ok, then I'll reassign this issue to xfwm4.

Dear xfwm4 maintainers, this seems to be an issue that crops up with
some but not all window managers.

I am unsure and unable to tell whether this is a documentation issue for
scrot ("use -f if you get selection artifacts" with your WM), or an
issue in the window manager, so I'd leave it to you to decide.

Feel free to close this if you do not consider it a window-manager
issue, and thank you for maintaining xfwm4!


Enrico