maim (make image) takes screenshots of your desktop. It has options to take only a region, and relies on slop to query for regions. maim is supposed to be an improved scrot.
X Error of failed request: BadWindow (invalid Window parameter)
Major opcode of failed request: 3 (X_GetWindowAttributes)
Resource id in failed request: 0x0
Serial number of failed request: 21
Current serial number in output stream: 22
Notice that xprop -root _NET_ACTIVE_WINDOW | cut -d " " -f 5 yields a hex value of the active window id. e.g. 0x1600004.
If I convert the hex to a decimal like below, then the program works.
crashes with the error message:
Notice that
xprop -root _NET_ACTIVE_WINDOW | cut -d " " -f 5
yields a hex value of the active window id. e.g. 0x1600004. If I convert the hex to a decimal like below, then the program works.In this case, 0x1600004 (16) = 23068676 (10), and maim is happy with the latter but crashes with the former.
FWIW: