Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4288032

static topGuess may fail to correct insets for multiple Frames

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.3.0
    • 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.

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: