@neauoire You might look at xwininfo that can list all the windows on the display with their IDs, as a way of finding your target window (I don't mean using that program, just the way it works)