<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - screenshot tools like scrot or maim do not work under (gnome) wayland"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=98672">98672</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>screenshot tools like scrot or maim do not work under (gnome) wayland
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Wayland
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>XWayland
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>wayland-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>lesmana@gmx.de
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>xorg-team@lists.x.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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."

<a href="https://github.com/naelstrof/maim/issues/67">https://github.com/naelstrof/maim/issues/67</a>

i use arch linux.

    $ pacman -Q gnome-shell wayland xorg-server-xwayland
    gnome-shell 3.22.1+2+g5a08886-1
    wayland 1.12.0-1
    xorg-server-xwayland 1.18.4-1

please tell me what more information do you need.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>