shellcheck sucks!
Try harder getting window frame

When _NET_FRAME_EXTENTS is not supported by the window manager, fall
back to using `xwininfo -frame` for the window frame. This may or may
not work, but it's worth a shot.