Fix window freeze after hide modal window (X11, Windows platforms).

This commit is contained in:
and3md 2017-08-10 16:51:48 +02:00
parent 993b6fd091
commit f735e5cea8
2 changed files with 2 additions and 2 deletions

View File

@ -1087,7 +1087,7 @@ class Win32Platform : Platform {
for (uint i = 0; i + 1 < _windowList.length; i++) { for (uint i = 0; i + 1 < _windowList.length; i++) {
if (_windowList[i] is w) { if (_windowList[i] is w) {
for (uint j = i + 1; j < _windowList.length; j++) { for (uint j = i + 1; j < _windowList.length; j++) {
if (_windowList[j].flags & WindowFlag.Modal) if (_windowList[j].flags & WindowFlag.Modal && _windowList[j]._windowState != WindowState.hidden)
return true; return true;
} }
return false; return false;

View File

@ -1667,7 +1667,7 @@ class X11Platform : Platform {
for (uint i = 0; i + 1 < _windowList.length; i++) { for (uint i = 0; i + 1 < _windowList.length; i++) {
if (_windowList[i] is w) { if (_windowList[i] is w) {
for (uint j = i + 1; j < _windowList.length; j++) { for (uint j = i + 1; j < _windowList.length; j++) {
if (_windowList[j].flags & WindowFlag.Modal) if (_windowList[j].flags & WindowFlag.Modal && _windowList[j]._windowState != WindowState.hidden)
return true; return true;
} }
return false; return false;