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

Cannot move window Ubuntu Wayland

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P2: Important
    • None
    • 6.4.2
    • GUI: Window management
    • None
    • Linux/Wayland

    Description

      The following Qt application moves a QWidget window on all desktops, except Ubuntu  Wayland:

      #include <QApplication>
      #include <QWidget>int main(int argc, char *argv[])
      {
          QApplication a(argc, argv);
          QWidget w = QWidget();    
      
          w.setWindowTitle("Window Move");
          w.setFixedSize(300, 200);    
      
          // Move window does not work on Ubuntu Wayland, works on X11
          w.move(1000, 600);    
      
          w.show();
      
          return a.exec();
      }

      On Ubuntu Wayland, the window is always created in the upper left corner and does not move to the x, y location:

      Attachments

        Issue Links

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

          Activity

            People

              liaqi Liang Qi
              erriez Erriez Ew
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes