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

No non-widget equivalent of QWidget::setWindowRole

    XMLWordPrintable

Details

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

    Description

      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

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes