path: root/src/widgets/doc
diff options
authorTor Arne Vestbø <>2017-03-29 13:26:27 +0200
committerTor Arne Vestbø <>2017-05-24 07:45:23 +0000
commit4c346b6e2bfab976bc9b16275b8382aee38aefa4 (patch)
treef1d9f566a05537a9a356151f9af0eb95a856eb7b /src/widgets/doc
parent808cc8853bbeaa9ee3ef11006a90b6ffdef1b606 (diff)
macOS: Don't keep WA_MacAlwaysShowToolWindow windows always on top
On macOS if an application is no longer active then it will cause any tool windows to hide until the application is active again. For applications that did not want this behavior and thus wanted the tool window to stay visible, the WA_MacAlwaysShowToolWindow flag is available. In order to ensure that this flag is respected, the tool window needs to have its level changed when the application active status changes. Once it is no longer active the window needs to be seen as a normal window, and when it is active then it needs to be set to be a window that is always on top to get the right behavior. Due to various bugs in AppKit we need to explicitly order windows in front during this process, which requires us to then iterate the windows in back-to-front order. For macOS versions < 10.12 there is no way to get an ordered list of windows, so we fall back to using the window creation order. Task-number: QTBUG-57581 Change-Id: If20b4698616707685f83b1378f87593f8169c8c6 Reviewed-by: Andy Shaw <>
Diffstat (limited to 'src/widgets/doc')
0 files changed, 0 insertions, 0 deletions