emersion / grim

Grab images from a Wayland compositor

Home Page:https://wayland.emersion.fr/grim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Focus stolen long enough from VS Code to hide tooltips

zikaeroh opened this issue · comments

I'm trying to take a screenshot of a VS Code completion list with slurp/grim in sway. To get around the list disappearing when the window isn't focused, I'm just sleeping before using grim/slurp to take the screnshot while having the window focused.

When grim runs, the completion list disappears just as the screenshot gets taken, which means that I can't actually screenshot the thing I'm intending to. This feels like some focus detection thing, where the window is losing focus (and stops the tooltips).

Sorry if this isn't a lot of information to go on; it's hard to show when the issue is with screen capture itself...

Using grim 1.2.0 with slurp 1.2.0, Arch packaged.

Actually, on trying just grim by itself, it can capture the tooltip just fine. I think it's just the focus being taken by slurp. I'll close this (since it's in the wrong place).