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

No non-widget equivalent of QWidget::setWindowRole

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.8
    • QPA, QPA: X11/XCB
    • None
    • Linux/X11

      QWidget::setWindowRole is important for session restoration.
      The current implementation calls QXcbWindow::setWindowRole directly. This then sets the X11 atom WM_WINDOW_ROLE[1] with a unique ID for that window so that the position and state can be restored correctly,

      There is nothing Widget specific about this function. It's a window property. It equally applies to any QtQuick apps that wanted to have working session management. Right now almost all QtQuick apps simply don't do session restoration well.

      We need to have something lifted up into QWindow or exposed via the X11 native interface.

      This same idea of a unique window id for session management is also identical on wayland, and I intend to copy whatever we do on X.

      [1] https://tronche.com/gui/x/icccm/sec-5.html

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

            liaqi Liang Qi
            davidedmundson David Edmundson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes