wm: fix minimized running