Duplicate X Window
make xdup
xdup window-id
You can obtain the window-id through xwininfo.
As observed in urxvt and xterm, the xwininfo returns the program's root window, and not the drawing window. Please use xwininfo -children
to find the appropriate child window.