/[Apache-SVN]
ViewVC logotype

Revision 1610563


Jump to revision: Previous Next
Author: rwhitcomb
Date: Tue Jul 15 00:29:37 2014 UTC (9 years, 9 months ago)
Changed paths: 1
Log Message:
PIVOT-953: Update startup positioning code to make sure that the final position
for a desktop application is within the current virtual screen area.  This is a
better fix for earlier code that attempted to make the x and y values never go
negative for two reasons:  the previous code only worked on the --x and --y
values specified on the command line, but not for saved positions, and for
multiple monitor configurations where the secondary monitor(s) are left / above
the primary monitor, the actual virtual screen coordinates could legitimately
be negative and the window is still visible. 

So, compute the bounds of the whole virtual screen space, by getting the union
of all the screen device bounds, then make sure the x and y coordinates (just
before using them to set the main window position) are within the virtual screen
boundaries.



Changed paths

Path Details
Directorypivot/trunk/wtk/src/org/apache/pivot/wtk/DesktopApplicationContext.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26