I am using
take-vector-screenshot to take a PDF screenshot.
When I launch
take-vector-screenshot, I have to click a button within its window in order to begin the screenshot process. I then need to pick the window to take a screenshot of.
In the process of clicking this button (pictured above), the focus changes from the window which I actually want to capture. Hence the screenshot I get is of an unfocussed window, which is undesirable.
I can use
wmctrl -a $WINDOW_TITLE to focus the window I want to take the screenshot of, but this doesn't work if I precede it with e.g. a
Any ideas how I can get this to work?