Improve cursor clipping logic (fix after alt+tab and confine to game window in Editor)
#691
This commit is contained in:
@@ -537,6 +537,8 @@ void WindowBase::Hide()
|
||||
{
|
||||
if (!_visible)
|
||||
return;
|
||||
EndClippingCursor();
|
||||
EndTrackingMouse();
|
||||
_visible = false;
|
||||
_showAfterFirstPaint = _settings.ShowAfterFirstPaint;
|
||||
Hidden();
|
||||
@@ -560,7 +562,6 @@ void WindowBase::Close(ClosingReason reason)
|
||||
}
|
||||
|
||||
// Close
|
||||
EndTrackingMouse();
|
||||
Hide();
|
||||
OnClosed();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user