Fetches the class and window-name from the topmost window