can't find a way to get active window's title with xlib so switched to xprop command.