Fix #699135, use the first element in the 'get_windows()' result

The result of 'get_windows()' is in most recently used order, so the
first element is the one we need.

Signed-off-by: Ignacio Casal Quinteiro <icq@gnome.org>