From 2a5cc07b5b98cccc26ff36530ecd561376f2e66a Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Thu, 26 Oct 2023 23:37:34 +0800 Subject: [PATCH] NotifierUI // Compensate the window area with system notifications. --- .../vChewing_NotifierUI/Sources/NotifierUI/NotifierUI.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Packages/vChewing_NotifierUI/Sources/NotifierUI/NotifierUI.swift b/Packages/vChewing_NotifierUI/Sources/NotifierUI/NotifierUI.swift index d363e5ec..b244df3e 100644 --- a/Packages/vChewing_NotifierUI/Sources/NotifierUI/NotifierUI.swift +++ b/Packages/vChewing_NotifierUI/Sources/NotifierUI/NotifierUI.swift @@ -101,8 +101,8 @@ public class Notifier: NSWindowController { let windowWidth = Double(4) * kLargeFontSize + textWH.width let contentRect = NSRect(x: 0, y: 0, width: windowWidth, height: 60.0) var windowRect = contentRect - windowRect.origin.x = screenRect.maxX - windowRect.width - 10 - windowRect.origin.y = screenRect.maxY - windowRect.height - 10 + windowRect.origin.x = screenRect.maxX - windowRect.width - 20 + windowRect.origin.y = screenRect.maxY - ceil(2.5 * windowRect.height) - 10 let styleMask: NSWindow.StyleMask = [.borderless] let transparentVisualEffect: NSView = {