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

--qwindowgeometry positioning doesn't work under wayland

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Invalid
    • Affects Version/s: 5.15.2
    • Fix Version/s: None
    • Component/s: GUI: Window management
    • Labels:
      None
    • Platform/s:
      Linux/Wayland

      Description

      Having any Qt app, for example this simple one:

      #include <QApplication>
      #include <QMainWindow>
      
      int main(int argc, char **argv)
      {
              QApplication a(argc, argv);
      
              QMainWindow win;
              win.show();
      
              return a.exec();
      }
      

      And running it such as:

      ./main --qwindowgeometry 800x600+100+200
      

      Correctly sets the size of the window (800x600), but not its position (100, 200).
      This worked on X11 and works also in Xwayland:

      QT_QPA_PLATFORM=xcb ./main --qwindowgeometry 800x600+100+200
      

        Attachments

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

          Activity

            People

            Assignee:
            tvete Paul Olav Tvete
            Reporter:
            jirislaby Jiri Slaby
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes