Fixed priority of topmost and bottommost settings

This commit is contained in:
Kirurobo
2021-09-13 18:43:47 +09:00
parent 149b2d18ba
commit 8d4439622b
8 changed files with 28 additions and 12 deletions

View File

@@ -392,8 +392,11 @@ public class LibUniWinC : NSObject {
/// Apply current window state
private static func _reapplyWindowStyles() -> Void {
if (targetWindow != nil) {
setBottommost(isBottommost: state.isBottommost)
setTopmost(isTopmost: state.isTopmost)
if (state.isBottommost) {
setBottommost(isBottommost: state.isBottommost)
} else {
setTopmost(isTopmost: state.isTopmost)
}
setBorderless(isBorderless: state.isBorderless)
setTransparent(isTransparent: state.isTransparent)
setMaximized(isZoomed: state.isZoomed)