Xprop

From Linuxintro

xprop and xwininfo allow you to find out information about windows on your graphical desktop. This can be useful to

recordmydesktop --windowid 0x2400014