corrected active/minimized window behaviour on win, x11 (clean needed)