summaryrefslogtreecommitdiffstats
path: root/examples/widgets/gestures/imagegestures
diff options
context:
space:
mode:
authorYansheng Zhu <670429759@qq.com>2023-12-21 12:27:49 +0800
committerYansheng Zhu <670429759@qq.com>2023-12-21 21:58:54 +0800
commit5f7b4c045f4347b9e47849d15d5932df45626c51 (patch)
treedb42187b941627d15fe15ea5e49a1a9fe354cb51 /examples/widgets/gestures/imagegestures
parent5192de707d34b5ef3bcffdc8370a2f894ef647f2 (diff)
Fix Maximized frameless window painting wrong with WS_THICKFRAME
In Qt versions greater than 6.4.2, when using Qt:FramelessWindowHint and WS_THICKFRAME simultaneously, and handling the WM_NCCALCSIZE message to draw a frameless window, the right and bottom sides may extend beyond the drawable boundaries. This is because in the previous commits, the calculation for margins was skipped for windows with Qt:FramelessWindowHint set. This is correct for non-maximized windows. However, when a window is maximized on Windows, its actual size is slightly larger than the drawable area to avoid users from dragging the border to resize the window. When window was maximized , the code for calculating geometry should remove the margins instead of skipping its calculation. The fixed code determines whether to skip the calculation of margins and frame by checking whether the window is maximized during the calculation [ChangeLog][QPA][Windows] Adding a check for the maximized state of the window during the calculation of margins. Margins calculation will not be skipped for maximized windows. Task-number: QTBUG-120196 Pick-to: 6.7 6.6 6.5 Change-Id: I63c8dbc8f65ff28cc581be261acfd3f675b027c4 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'examples/widgets/gestures/imagegestures')
0 files changed, 0 insertions, 0 deletions