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

--qwindowgeometry positioning doesn't work under wayland

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 5.15.2
    • GUI: Window management
    • None
    • 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

            tvete Paul Olav Tvete
            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