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

Frame is not getting maximized properly on multi-mon xinerama setup (linux)



    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Not an Issue
    • Affects Version/s: 5.0
    • Fix Version/s: None
    • Component/s: client-libs
    • Subcomponent:
    • CPU:
    • OS:


      I have a multi-mon virtual screen setup on linux configured using xinerama. I am popping up a frame on the first (left) screen. I am moving this frame towards the right end of the first monitor. Say if the width of the first monitor is 1024, I am keeping this frame at 900. It does not cross the screen periphery. Now when I maximize the frame, the frame gets maximized in the second screen located to it's right instead of the first screen in which it is located and some portion of the frame is still seen on the first screen and the size somewhat exceeds the second screen also. Looks like the size of the frame is not properly set. But this works fine when I move the normal frame to screen2 and maximize it from there.

      This is reproducible on Tiger as well as Mustang on Linux + xinerama. Not reproducible on Win32. I am using a Matrox Dualhead G450 video board that has 2 outputs.

      I have attached a sample test which would pop up a frame when executed. Execute it on the first (left) screen and move it to the right half of the screen. Make sure it does not extend beyond the screen periphery. Click the maximize button. If the frame gets maximized in the right screen and some part of the frame is still seen on monitor-1, the bug is reproduced. Also if you notice carefully, you would not see the maximize/minimize/close buttons.
      ###@###.### 10/13/04 15:38 GMT

      I tried this scenario with a native app such as Gedit and I saw the same behavior. Hence this looks like an issue with the WM and not with Java, as given in the evaluation. Anyway, I have provided other requested info below:

      WM: metacity 2.4.34

      Red Hat Linux release 9 (Shrike)
      Linux jlab306 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 i386 GNU/Linux

      Desktop: Gnome v2.0
      ###@###.### 10/13/04 16:59 GMT




            Unassigned Unassigned
            pmohansunw Praveen Mohan (Inactive)
            0 Vote for this issue
            0 Start watching this issue