|
|
|
@ -118,13 +118,16 @@ void WindowImpl::BringToFront() |
|
|
|
{ |
|
|
|
if(Window != nullptr) |
|
|
|
{ |
|
|
|
if(IsDialog()) |
|
|
|
if (![Window isMiniaturized]) |
|
|
|
{ |
|
|
|
Activate(); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
[Window orderFront:nullptr]; |
|
|
|
if(IsDialog()) |
|
|
|
{ |
|
|
|
Activate(); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
[Window orderFront:nullptr]; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
[Window invalidateShadow]; |
|
|
|
@ -487,6 +490,8 @@ HRESULT WindowImpl::SetWindowState(AvnWindowState state) { |
|
|
|
} |
|
|
|
|
|
|
|
if (_shown) { |
|
|
|
_actualWindowState = _lastWindowState; |
|
|
|
|
|
|
|
switch (state) { |
|
|
|
case Maximized: |
|
|
|
if (currentState == FullScreen) { |
|
|
|
@ -544,7 +549,6 @@ HRESULT WindowImpl::SetWindowState(AvnWindowState state) { |
|
|
|
break; |
|
|
|
} |
|
|
|
|
|
|
|
_actualWindowState = _lastWindowState; |
|
|
|
WindowEvents->WindowStateChanged(_actualWindowState); |
|
|
|
} |
|
|
|
|
|
|
|
|