Skip to content

Commit

Permalink
pangolin: Fix lag when resizing maximized window
Browse files Browse the repository at this point in the history
  • Loading branch information
HrX03 committed Jul 9, 2022
1 parent 3212c37 commit 21b8ac9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/utils/wm/layout.dart
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,9 @@ class _WindowLayoutBuilderState extends State<_WindowLayoutBuilder>
void didChangeDependencies() {
super.didChangeDependencies();
if (_mqSize != MediaQuery.of(context).size) {
WidgetsBinding.instance.addPostFrameCallback((_) {
_mqSize = MediaQuery.of(context).size;
_actualRect = _getWindowRect();
setState(() {});
});
_mqSize = MediaQuery.of(context).size;
_actualRect = _getWindowRect();
setState(() {});
}
}

Expand Down

0 comments on commit 21b8ac9

Please sign in to comment.