Fixed Kodi windows detection + now uses window id instead of names.