fix bug: window can not be brought to front while windows is minimized