screenshot tools like scrot or maim do not work under (gnome) wayland.
scrot and maim produce black images with the dimension of my display.
import of imagemagick produces following error message
$ import -window root foo.png
import: unable to read X window image `root': Resource temporarily unavailable @ error/xwindow.c/XImportImage/4983.
import: missing an image filename `foo.png' @ error/import.c/ImportImageCommand/1287.
this happened on my system since gnome 3.22 which uses wayland by default. previously i did not test wayland.
when using gnome with X then scrot and maim and import produce screenshots as expected.
i reported this bug to the maim developers. they said the following: "you'll be better off submitting bug reports to the wayland team since imlib2's X11 calls aren't being translated properly."
i use arch linux.
$ pacman -Q gnome-shell wayland xorg-server-xwayland
please tell me what more information do you need.
By design, Wayland is a lot more secure than X11 and does not allow one application to capture the content of other applications' windows, meanignath a X11 based screenshot tool cannot work underWayland/Xwayland.
Both Weston and gnome-shell (Wayland compositors) have screencast and screenshot features built-in.
It seems like this should have been marked as Resolved, so I'm doing so as NOTABUG (could also be WONTFIX?).
I recommend looking at https://bugs.freedesktop.org/show_bug.cgi?id=98894 tho! Possibly someday in the not too distant future there will be a cross-toolkit way to take screenshots.