Dear Maintainer,
* What led up to the situation?
using xdotool search fails with BadWindow
* What exactly did you do (or not do) that was effective (or
ineffective)?
Just using xdotool search
* What was the outcome of this action?
BadWindow
* What outcome did you expect instead?
a window ID
Note: this bug is fixed in xdotool 3.20211022.1 (latest version)