mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-09 16:45:46 -07:00
skip unrequired movement
This commit is contained in:
parent
4f8bf464c5
commit
15deb6216f
1 changed files with 4 additions and 2 deletions
|
|
@ -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 {
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue