I try to capture window.
VideoCapture cap("ximagesrc show-pointer=true use-damage=false xid=0x3c00003 ! video/x-raw,framerate=30/1 ! videoconvert ! appsink