When "select a region" is selected for capturing a screenshot. xfce4-screenshooter went to black screen if xfce4 window compositor is enabled. However if the xfce4 window compositor is disabled, it works fine. Much better if xfce4-screenshooter can work even window compositor is enabled.
Edited
Designs
Child items
...
Show closed items
Linked items
0
Link issues together to show that they're related.
Learn more.
Activity
Sort or filter
Newest first
Oldest first
Show all activity
Show comments only
Show history only
Rizal Martinchanged title from xfce4-screenshooter black screen when compositor enabled to xfce4-screenshooter goes black screen when compositor enabled
changed title from xfce4-screenshooter black screen when compositor enabled to xfce4-screenshooter goes black screen when compositor enabled
Enable the compositor and try changing its v_blank value in Settings Editor from auto to off, glx and xpresent and see which ones work correctly with screenshooter.
Much better if xfce4-screenshooter can work even window compositor is enabled.
Screenshooter does work with compositor enabled, this could be driver or compositor issue. It would be great if you could try a different driver (xf86-video-intel) and compositor (e.g. compton) or a completely different window manager (e.g. marco, mutter...).
I tried the stock xorg driver xf86-video-intel still shows black screen when selecting a region if the compositor is enabled. The compositor was the stock xfce and the window manager is xfwm
Ok, alright, but did you try another compositor? We need to figure out what's broken piece, this could be a problem with driver, compositor, screenshooter or something else.
Also, please tell us the output of xfwm4 -V and xfce4-screenshooter -V
Nope I have no idea what compositor is compatible with xfce
Here is the terminal output
xfwm4 -V
This is xfwm4 version 4.16.1 (revision 5f61a84ad) for Xfce 4.16 Released under the terms of the GNU General Public License. Compiled against GTK+-3.24.24, using GTK+-3.24.29. Build configuration and supported features: - Startup notification support: Yes - XSync support: Yes - Render support: Yes - Xrandr support: Yes - Xpresent support: Yes - X Input 2 support: No - Embedded compositor: Yes - Epoxy support: Yes - KDE systray proxy (deprecated): No
Nope I have no idea what compositor is compatible with xfce
Any window manager with compositor should work, for instance mutter, gala, marco, kwin, etc. You should be able to execute any of them with the --replace option, e.g. mutter --replace.
Checking other WM/Compositor is important for us to determine whether xfwm4 is at fault, if you still get blank pictures, then please try another screenshooting tool, for example gnome-screenshot, flameshot, etc.
I tried xfce4-screenshot on Kubuntu 20.04 the whole screen was dark transparent for selecting region unlike in xfwm4 totally black display. I will try other screenshot tools too.
This bug has just started for me. I use Fedora 34, usually up to date.
I think it was activated by the last upgrade of xorg-x11-drv-nvidia-470.63.01-3.fc34.x86_64. Saw no recent update of xfce related package.
BTW: I tried to force vblank mode between off, glx and xpresent, and none worked.
xfce4-screenshooter 1.9.8
This is xfwm4 version 4.16.1 (revision 5f61a84ad) for Xfce 4.16 Released under the terms of the GNU General Public License. Compiled against GTK+-3.24.24, using GTK+-3.24.30. Build configuration and supported features: - Startup notification support: Yes - XSync support: Yes - Render support: Yes - Xrandr support: Yes - Xpresent support: Yes - X Input 2 support: No - Embedded compositor: Yes - Epoxy support: Yes - KDE systray proxy (deprecated): No
I'm also using nvidia 470.63.01 here (btw, I use Arch) with compositor enabled, everything is working fine.
Could please try to revert to a previous version? Disabling the compositor makes any difference? Are you able to check with another window manager as explained above?
@andreldm I got the screenshooter to work with compositor again!
I just remembered that on last upgrade I also changed the default depth of xorg/nvidia to 30. Just don't remember why. Reverting it back to 24 solved it.
Hope my confusion help find the problem. 😕
Some pages found googling about 30 bit depth said that compositors could have problems, because they need the alpha channel, and this mode uses its memory to add color depth.
I see, with this configuration I'm able to reproduce the bug, however this seems a tricky one.
Also, screenshooter worked when you disabled compositor because it uses a different drawing function in that case, there is no transparency and the rectangle has a dashed border.
I wrote this little reproducer and here are my findings:
WM
Results
Xfwm4
Nothing worked
Xfwm4 + Picom
Nothing worked
Kwin
Nothing worked
Mutter
with get_best() and get_best_with_depth(32) we have transparency, but not 40% as expected, and both functions are deprecated
@olivier I'm lost with this one, do you have any ideas?