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

Example does not honour xrandr reorientation of screen.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.10
    • Virtual Keyboard
    • None
    • Linux/X11

    Description

      Looking into QTBUG-134582, I tried running the qtvirtualkeyboard/examples/virtualkeyboard/basic/ example (and was able to reproduce a semblance of the issue there). In the course of this I was struck by the example being displayed sideways – that is, it's "top" is the right edge of the window my window-manager displays, its "left" is the upper edge along which my window-manager displays its window title and at the right end of which it places the minimise, maximise, kill icons for the window.

      There is an obvious guess to what's making this happen: I have a rotated screen and use xrandr --current -o left to tell X to rotate the display. Thus the physical screen has "Samsung" written along the edge that I've got rotated to be the left edge (but it would be the bottom when not rotated), with its various window-control bottoms at the bottom (which would be the right when this edge is the bottom) of that edge. Every other X application I use understands (as has every Qt example I've previously run) that and duly treats the long axis of my screen as vertical and the short one as horizontal; but the raw X server might leak the fact that the manufacturer's default orientation is the other way round. It would appear that, somehow, this example is using the physical screen's default orientation (landscape mode), instead of the (portrait mode) orientation that the rest of my X session (including the window manager) believes in.

      I tried running the application within a Xephyr virtual X session and, within that, running xrandr to set that X session's orientation (obviously, relative to the parent context of my X session). The xterm in which I was typing the xrandr commands followed the orientations I set faithfully, but the example always displayed sideways. For xrandr's normal and left orientations, the example's "top" (in its own terms) was on the right; but for inverted and right orientations it flipped to put the "top" on the left.

      The example should (like that xterm within Xephyr, and everything else I've ever run) honour the orientation xrandr has told the X session to use.

      Attachments

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

        Activity

          People

            jakoivik Jarkko Koivikko
            Eddy Edward Welbourne
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes