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

Linux: X11GraphicsDevice.setFullScreenWindow() doesn't work in exclusive mode

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: client-libs
    • Labels:
      None

      Description

      if (gd.isFullScreenSupported()) {
      gd.setFullScreenWindow(frame);
      }
      this code only maximizes window. This issue can be reproduced on a reparenting window manager.

      From X11GD_SetFullscreenMode(), awt_GraphicsEnv.c:1793

          /*
           * Note: the Window passed to this method is typically the "content
           * window" of the top-level, but we need the actual shell window for
           * the purposes of constructing the XEvent. Therefore, we walk up the
           * window hierarchy here to find the true top-level.
           */

      But since our frame window is not a direct child of a root window, we sending client event with wrong window.

      So we should find another way to determine a "top-level" window.

      [1] http://tronche.com/gui/x/icccm/sec-4.html#s-4.1.1




        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                azvegint Alexander Zvegintsev (Inactive)
                Reporter:
                azvegint Alexander Zvegintsev (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: