BUG: TokenTool saves window coordinates off the screen

Thoughts, Help, Feature Requests

Moderators: dorpond, trevor, Azhrei

Post Reply
RevenantBob
Cave Troll
Posts: 36
Joined: Sat May 19, 2012 3:41 pm

BUG: TokenTool saves window coordinates off the screen

Post by RevenantBob »

Infrequently (And I'm not sure how I manage to recreate it) token tool will save window coordinates in the windows registry way off the screen. Fixing it requires me to go into the registry and update the values so it will load back on screen again. I have a Windows 10 machine with dual monitors. Not sure if that has anything to do with it (My Java knowledge is limited) but maybe some check to ensure the window is within the desktop area when it loads is in order?

The registry values that get saved are in the key: HKEY_CURRENT_USER\Software\JavaSoft\Prefs\net\rptools\tokentool\client
window_x = -32000.0
window_y = -32000.0

So maybe that can help track the issue.

User avatar
Full Bleed
Demigod
Posts: 4736
Joined: Sun Feb 25, 2007 11:53 am
Location: FL

Re: BUG: TokenTool saves window coordinates off the screen

Post by Full Bleed »

RevenantBob wrote:
Sun Mar 10, 2019 12:03 pm
Infrequently (And I'm not sure how I manage to recreate it) token tool will save window coordinates in the windows registry way off the screen...

I have a Windows 10 machine with dual monitors. Not sure if that has anything to do with it...
Do you *always* have both monitors on and in the same configuration when using the app?

Also, take note of what other apps you have running when the issue occurs (and note if they are windowed or full screen, etc.)
Maptool is the Millennium Falcon of VTT's -- "She may not look like much, but she's got it where it counts."

RevenantBob
Cave Troll
Posts: 36
Joined: Sat May 19, 2012 3:41 pm

Re: BUG: TokenTool saves window coordinates off the screen

Post by RevenantBob »

I don't reconfigure monitors, no. And I do tend to use it maximized, yes. The coordinates that I see in registry are not valid. Even if my monitor were moving. 1080p monitors won't come up with a value of -32000 as valid coordinates. I'm trying to figure out the alchemy that causes the problem because it's not every time.

Phergus
Deity
Posts: 7132
Joined: Fri May 12, 2006 8:56 pm
Location: Middle of Nowhere, NM
Contact:

Re: BUG: TokenTool saves window coordinates off the screen

Post by Phergus »

But opened on GitHub.

https://github.com/RPTools/TokenTool/issues/35

Add any other comments you feel are relevant.

RevenantBob
Cave Troll
Posts: 36
Joined: Sat May 19, 2012 3:41 pm

Re: BUG: TokenTool saves window coordinates off the screen

Post by RevenantBob »

This is still happening. I'm going to dig through the source code and see if I can't figure out why it's happening. Maybe make a PR or something for it.

Phergus
Deity
Posts: 7132
Joined: Fri May 12, 2006 8:56 pm
Location: Middle of Nowhere, NM
Contact:

Re: BUG: TokenTool saves window coordinates off the screen

Post by Phergus »

Have at it!

Post Reply

Return to “TokenTool”