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

XCB: Two subsequent window activations can cancel each other out in a data race

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.11
    • GUI: Window management
    • None
    • Linux/X11

      Autotests with this code pattern can be flaky on XCB:

      QWindow window;
      window.show();
      window.requestActivate();
      QVERIFY(QTest::qWaitForWindowActive(&window));
      

      show() causes the window to get activated. On QXcbWindow level, the activation may get deferred if QXcbWindow::requestActivateWindow() is reached when the window hasn't been mapped (=sown) yet. The explicit call to requestActivate() may also cause a deferred activation. When both activations find that another one is ongoing, both return with a no-op.

        For Gerrit Dashboard: QTBUG-139133
        # Subject Branch Project Status CR V

            fredericl Frederic Lefebvre
            axelspoerl Axel Spoerl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There is 1 open Gerrit change