From 543ba0ec62b53cb58fb3995bf977feb47f0b4123 Mon Sep 17 00:00:00 2001 From: Robinson Date: Sat, 25 Nov 2023 22:07:53 +0100 Subject: [PATCH] Removed MARGIN, so we have a little space when displaying notification --- src/dorkbox/notify/DesktopNotify.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/dorkbox/notify/DesktopNotify.kt b/src/dorkbox/notify/DesktopNotify.kt index 44f964e..70c0e88 100755 --- a/src/dorkbox/notify/DesktopNotify.kt +++ b/src/dorkbox/notify/DesktopNotify.kt @@ -145,11 +145,10 @@ internal class DesktopNotify(override val notification: Notify) : JWindow(), Not val gc = ScreenUtil.getMonitorAtLocation(point)?.defaultConfiguration ?: return 0 val screenInsets = Toolkit.getDefaultToolkit().getScreenInsets(gc) - // " - Notify.MARGIN" is required BECAUSE each entry is offset by the margin, and we want the notification to be touching the edge!! return if (showFromTop) { - screenInsets.top - Notify.MARGIN + screenInsets.top } else { - -(screenInsets.bottom - Notify.MARGIN) + -(screenInsets.bottom) } }