fix FS#921 - File - Save As: chosen file type filter ignored under KDE
add cache for getWindowManagerId