mirror of https://github.com/buggins/dlangui.git
fixes
This commit is contained in:
parent
60a6ed5ac3
commit
50e2f08049
|
@ -242,8 +242,9 @@ class Window : CustomEventTarget {
|
||||||
}
|
}
|
||||||
/// window state change signal
|
/// window state change signal
|
||||||
Signal!OnWindowStateHandler windowStateChanged;
|
Signal!OnWindowStateHandler windowStateChanged;
|
||||||
/// update and signal window state changes - for using in platform inplementations
|
/// update and signal window state and/or size/positon changes - for using in platform inplementations
|
||||||
protected void handleWindowStateChange(WindowState newState, Rect newWindowRect = RECT_VALUE_IS_NOT_SET) {
|
protected void handleWindowStateChange(WindowState newState, Rect newWindowRect = RECT_VALUE_IS_NOT_SET) {
|
||||||
|
if (newState != WindowState.unspecified)
|
||||||
_windowState = newState;
|
_windowState = newState;
|
||||||
if (newWindowRect != RECT_VALUE_IS_NOT_SET)
|
if (newWindowRect != RECT_VALUE_IS_NOT_SET)
|
||||||
_windowRect = newWindowRect;
|
_windowRect = newWindowRect;
|
||||||
|
|
Loading…
Reference in New Issue