Skip to content

Commit 0ab833c

Browse files
committed
Fix aero snap effects
1 parent 8354646 commit 0ab833c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

qml/MainWindows.qml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,19 @@ ApplicationWindow {
7373
}
7474
}
7575

76+
function forceRerender() {
77+
appWindow.height += 1; appWindow.width += 1
78+
appWindow.height -= 1; appWindow.width -= 1
79+
appWindow.x += 1; appWindow.y += 1
80+
appWindow.x -= 1; appWindow.y -= 1
81+
}
82+
7683
onVisibilityChanged: {
7784
root.visibility = appWindow.visibility
85+
86+
if (appWindow.visibility !== Window.FullScreen) {
87+
appWindow.forceRerender()
88+
}
7889
}
7990
}
8091
}

0 commit comments

Comments
 (0)