Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-953

If screen configuration changes, a desktop app could end up completely offscreen

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.4
    • Fix Version/s: 2.1, 2.0.5
    • Component/s: wtk
    • Labels:
    • Environment:
      Windows 7, etc.

      Description

      The final screen position for a desktop application is saved on exit. If there are multiple monitors this saved position could be completely off the primary monitor. If the screen configuration changes (say the second monitor is disconnected) then starting up the application and setting the position to the last saved position could position the window completely off the current virtual screen area, and make the application window invisible.

      1. 953.diffs
        4 kB
        Roger Whitcomb

        Activity

        Hide
        rwhitcomb Roger Whitcomb added a comment -

        Changed in trunk:
        Sending wtk\src\org\apache\pivot\wtk\DesktopApplicationContext.java
        Transmitting file data .
        Committed revision 1610563.

        Show
        rwhitcomb Roger Whitcomb added a comment - Changed in trunk: Sending wtk\src\org\apache\pivot\wtk\DesktopApplicationContext.java Transmitting file data . Committed revision 1610563.
        Hide
        rwhitcomb Roger Whitcomb added a comment -

        The "953.diffs" file is what I checked in to trunk to address this issue. Wondering if there needs to be more, and if this seems like the right fix for the problem.

        Show
        rwhitcomb Roger Whitcomb added a comment - The "953.diffs" file is what I checked in to trunk to address this issue. Wondering if there needs to be more, and if this seems like the right fix for the problem.
        Hide
        smartini Sandro Martini added a comment -

        Roger, to me looks good ... or at least we could improve it later/if needed .

        Will you do a merge even in 2.0.x ?

        Show
        smartini Sandro Martini added a comment - Roger, to me looks good ... or at least we could improve it later/if needed . Will you do a merge even in 2.0.x ?
        Hide
        rwhitcomb Roger Whitcomb added a comment -

        Thank you, Sandro. Yes, here are the changes merged into 2.0.x:
        Sending .
        Sending wtk\src\org\apache\pivot\wtk\DesktopApplicationContext.java
        Transmitting file data .
        Committed revision 1611502.

        Show
        rwhitcomb Roger Whitcomb added a comment - Thank you, Sandro. Yes, here are the changes merged into 2.0.x: Sending . Sending wtk\src\org\apache\pivot\wtk\DesktopApplicationContext.java Transmitting file data . Committed revision 1611502.
        Hide
        rwhitcomb Roger Whitcomb added a comment -

        Resolved to my satisfaction. Will reopen if further testing finds other problems.

        Show
        rwhitcomb Roger Whitcomb added a comment - Resolved to my satisfaction. Will reopen if further testing finds other problems.

          People

          • Assignee:
            rwhitcomb Roger Whitcomb
            Reporter:
            rwhitcomb Roger Whitcomb
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development