From 15deb6216ff871349c4e2212f8bd1efcd91e4aa2 Mon Sep 17 00:00:00 2001 From: downthecrop Date: Fri, 25 Oct 2024 21:26:43 -0700 Subject: [PATCH] skip unrequired movement --- plugin-playground/src/main/kotlin/KondoKit/plugin.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugin-playground/src/main/kotlin/KondoKit/plugin.kt b/plugin-playground/src/main/kotlin/KondoKit/plugin.kt index d9a3cfd..12d75cc 100644 --- a/plugin-playground/src/main/kotlin/KondoKit/plugin.kt +++ b/plugin-playground/src/main/kotlin/KondoKit/plugin.kt @@ -525,9 +525,11 @@ class plugin : Plugin() { // Clear original canvas for scaled if(!initialized) return SwingUtilities.invokeLater { + var p = Point(-1000,-1000) if (GetWindowMode() == WindowMode.FIXED) { - if (canvas.isShowing) { - canvas.setLocation(-1000,-1000) + if (canvas.location != p) { + println("Moving canvas offscreen"); + canvas.location = p; } } else {