emersion / grim

Grab images from a Wayland compositor
https://wayland.emersion.fr/grim
MIT License
910 stars 37 forks source link

Region doesn't show cursor #108

Open asjur opened 2 years ago

asjur commented 2 years ago

When taking screenshots with grim using region provided by slurp, even if I specify -c, cursor is not captured.

mstoeckl commented 2 years ago

What command, exactly, are you using? Also, what cursor theme, and which Wayland compositor?

I can't reproduce this myself; however, if I make a screenshot with grim -g "$(slurp -d)" over some text input region, the screenshot uses the I-beam cursor shape (I) instead of the regular ( 🮰) cursor that is seen while selecting a region with slurp . So if the underlying program sets an invisible cursor, the screenshot will use that invisible cursor.

asjur commented 2 years ago

This is my command grim -c -g "$(slurp -d)" - | wl-copy Cursor theme is Adwaita and I'm on Sway 1.6