skip unrequired movement

This commit is contained in:
downthecrop 2024-10-25 21:26:43 -07:00
parent 4f8bf464c5
commit 15deb6216f

View file

@ -525,9 +525,11 @@ class plugin : Plugin() {
// Clear original canvas for scaled // Clear original canvas for scaled
if(!initialized) return if(!initialized) return
SwingUtilities.invokeLater { SwingUtilities.invokeLater {
var p = Point(-1000,-1000)
if (GetWindowMode() == WindowMode.FIXED) { if (GetWindowMode() == WindowMode.FIXED) {
if (canvas.isShowing) { if (canvas.location != p) {
canvas.setLocation(-1000,-1000) println("Moving canvas offscreen");
canvas.location = p;
} }
} else { } else {