Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-2341

QDesktopWidget::resized does not support xrandr 1.2 or newer

    XMLWordPrintable

Details

    Description

      QDesktopWidget::resized is not aware of xinerama.

      qt-x11-opensource-src-4.4.0/src/gui/kernel/qapplication_x11.cpp
      // update the size for desktop widget
      int scr = XRRRootToScreen(X11->display, event->xany.window);
      + printf("Desktop resized | screen %d\n",scr);
      QWidget *w = desktop()->screen(scr);
      QSize oldSize(w->size());
      w->data->crect.setWidth(DisplayWidth(X11->display, scr));

      the problem stems from the fact that XRRRootToScreen() returns the X11 screen when in fact the code expects it to return the xinerama screen which is quite different.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            bhughes Bradley T. Hughes (closed Nokia Identity) (Inactive)
            admin Administrator
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes