Bug 72 : saved window position problematic with multiple monitors
Last modified: 2010-06-05 10:28



Assigned To:

Attachment Type Created Size Actions

Description:   Opened: 2005-07-15 16:19
saved window positions.. if displays has changed, becomes a problem.

record the display that it was on?
GraphicsDevice gd = frame.getGraphicsConfiguration().getDevice();

make sure that the application is within the bounds of the current display?
(from 0, 0 to width, height)
Additional Comment #1 From atomless 2005-09-16 04:58
Also problematic when working with a second monitor. yesterday I was
working on a sketch that used a 900 by 900 window. I was positioning the
window on my second monitor which has a 1280 by 1024 resolution. today I
re-opened processing and the sketch window position that is stored must be
for my second monitor, but it is appearing on my first monitor which is
only 1024 by 768 and so the top of the sketch window is well off the top of
the screen.

This is a bit of a problem as I won't be able to continue working unless I
can edit the stored sketch window position manually somewhere????
Additional Comment #2 From fry 2005-09-16 05:03
yeah, sorry about that.. you can either kill your preferences.txt file or
edit the last.window.x and last.window.y lines by hand to put it somewhere

(the location of the preferences file is listed in the preferences dialog,
or described in the faq.)
Additional Comment #3 From atomless 2005-09-16 06:39
cool, thanks Ben.

yeah I guessed there might be a line in the preferences. Also fixes things
if you change the resolution in your os display settings.

Additional Comment #4 From fry 2005-09-16 06:41
yeah, forgot about that.. i'd only gotten as far as checking to see whether
the screen resolution changes, and when it does, to chuck the old settings.
just need to take care of this multi-monitor stuff...
Additional Comment #5 From oompa_l 2009-01-19 18:18
I am having a problem with my display window appearing patirally off screen
- I have no access to the title bar to reposition it. If I 'kill' the
preferences file will processing still work ok? I looked the last.window.x
and last.window.y lines bt couldn't find them...

Additional Comment #6 From fry 2009-01-20 05:24
no need to kill it, just rename preferences.txt in case anything goes wrong
(it shouldn't).

first find it's location (it's listed in the preferences dialog), then quit
processing, rename it, and restart processing.