static topGuess may fail to correct insets for multiple Frames

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 1.4.0
    • Affects Version/s: 1.3.0
    • Component/s: client-libs
    • None
    • beta
    • generic
    • solaris_2.6

        In awt_TopLevel.c, the usage of static topGuess may fail to get the right corrections for multiple frame case.

            topCorrection = correctWMTop - topGuess;
          leftCorrection = correctWMLeft - sideGuess;
          bottomCorrection = correctWMBottom - sideGuess;
          rightCorrection = correctWMRight - sideGuess;

        If two frames are created and shown around the same time, wdata for the second frame might have wrong guessed values for top, bottom and side while topGuess and sideGuess hold the correct values.

        Test cases attached.

              Assignee:
              Son Nguyen
              Reporter:
              Xianfa Deng (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: