Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.5, 6.8, 6.9
-
-
6ac399b8f (dev), 699570999 (dev), 05dfd8a0b (6.8), 44ca150fe (tqtc/lts-6.5), 705bac063 (dev), d952be28f (6.8), 56469059b (tqtc/lts-6.5), c3d3868b9 (dev), d58d59693 (dev), b56192b80 (dev)
Description
The Qt XCB implementation knows about a window, when it has been mapped.
QApplication::topLevelAt() eventually lands in QXcbScreen::topLevelAt(). This method iterates from the screen's root window to the topmost child via xcb_translate_coordinates.
This call requests coordinate translation from the X11 server, which runs in a separate thread. It might not have been fully updated, when receiving the call - even though the window is mapped and has an ID.
That leads to flakiness, e.g. in tst_gestures.