Do not apply SW_RESTORE when the window receives focus. Fixes #53.

This commit is contained in:
Ioannis Tsakpinis 2013-10-30 15:32:02 +02:00
parent 6c4de65e20
commit 4ff2240b57
1 changed files with 0 additions and 5 deletions

View File

@ -376,11 +376,6 @@ final class WindowsDisplay implements DisplayImplementation {
restoreDisplayMode();
}
if (parent == null) {
if(maximized) {
showWindow(getHwnd(), SW_MAXIMIZE);
} else {
showWindow(getHwnd(), SW_RESTORE);
}
setForegroundWindow(getHwnd());
}
setFocus(getHwnd());