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

Cannot move window Ubuntu Wayland

XMLWordPrintable

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

      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:

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes