Skip to content

Commit

Permalink
Fix aero snap effects
Browse files Browse the repository at this point in the history
  • Loading branch information
trin94 committed Oct 27, 2024
1 parent 8354646 commit 0ab833c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions qml/MainWindows.qml
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,19 @@ ApplicationWindow {
}
}

function forceRerender() {
appWindow.height += 1; appWindow.width += 1
appWindow.height -= 1; appWindow.width -= 1
appWindow.x += 1; appWindow.y += 1
appWindow.x -= 1; appWindow.y -= 1
}

onVisibilityChanged: {
root.visibility = appWindow.visibility

if (appWindow.visibility !== Window.FullScreen) {
appWindow.forceRerender()
}
}
}
}
Expand Down

0 comments on commit 0ab833c

Please sign in to comment.