Skip to content

Commit

Permalink
Fixing #149
Browse files Browse the repository at this point in the history
Flicker/Lag when restoring floating window from Maximized state
  • Loading branch information
Dirkster99 committed Apr 18, 2020
1 parent f8524f1 commit f861e87
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,12 +176,8 @@ private set
protected override void OnStateChanged(EventArgs e)
{
if (!_isInternalChange)
{
if (WindowState == WindowState.Maximized)
UpdateMaximizedState(true);
else
WindowState = IsMaximized ? WindowState.Maximized : WindowState.Normal;
}
UpdateMaximizedState(WindowState == WindowState.Maximized);

base.OnStateChanged(e);
}

Expand Down

0 comments on commit f861e87

Please sign in to comment.