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

Canvas's graphics config does not change when moved across monitors, Linux

XMLWordPrintable

    • b15
    • x86
    • linux_suse_sles_10
    • Verified

      I have a frame with a canvas created using Default screen's graphics configuration. After showing the frame, I am moving the frame (with canvas) from primary to secondary screen and trying to get the current graphics configuration by calling getGraphicsConfiguration(). Frame returns the secondary monitor's graphics config as the current config whereas Canvas still returns the primary screen's GC. Canvas is not inheriting the GC properly from the top-level window.

      This is reproducible on SuSE10 and not reproducible on WinXP (both are virtual screen enviroments). I tried on SuSE10 + xinerama as well as SuSE10 + TwinView and the bug is reproducible on both. For Twin-View, I used Nvidia GeForce FX5900. This bug is causing few false failures in the multimonitor testsuite. This is reproducible atleast since JDK5.

      I have attached the same test. Run the test. You will see a frame with a blue canvas and a button. Click on the button and take a note of the GC shown on the console. Move the frame manually to the secondary monitor and click on the button again. If the canvas shows the same GC, the bug is reproduced.

            art Artem Ananiev (Inactive)
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: