diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2021-09-14 18:26:40 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2021-09-22 15:37:04 +0200 |
commit | d4b029df948fb5d7a4ae30a54deec5525a6fc032 (patch) | |
tree | 2b2a12c2d21609b4aea0c49020ce1250b056a643 /src/3rdparty/libjpeg/src/jconfig.h | |
parent | 9929873fdf4fad1fa2ee3c74ca8c887d753b9525 (diff) | |
download | qtbase-d4b029df948fb5d7a4ae30a54deec5525a6fc032.tar.gz |
macOS: Compute NSWindow background color without checking styleMask
The check for styleMask == NSWindowStyleMaskBorderless to decide whether
to clear the NSWindow background was broken, as NSWindowStyleMaskBorderless
has the value 0, but is only supposed to be compared to its companion
NSWindowStyleMaskTitled (with value 1). A window can perfectly well be
NSWindowStyleMaskBorderless and NSWindowStyleMaskMiniaturizable e.g.,
so by comparing directly to NSWindowStyleMaskBorderless instead of
masking to the first bit first we ended up making miniaturizable
windows non-translucent.
We now check the Qt::FramelessWindowHint directly, and also whether
the window is opaque. Ideally we'd have QWindow flags that could
plumb WA_NoSystemBackground from Qt Widgets, as well as a background
color property on QWindow to control the system background, but
in the meantime we'll have to use the FramelessWindowHint heuristic.
The QWidget docs have been updated to reflect this.
Task-number: QTBUG-95042
Change-Id: I0d40eecace60883c205ebb8c76cef1092cdf1144
(cherry picked from commit db53e2b757fcd132aa60f38219ba16a468d15271)
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/3rdparty/libjpeg/src/jconfig.h')
0 files changed, 0 insertions, 0 deletions