diff options
author | Mikolaj Boc <mikolaj.boc@qt.io> | 2022-08-12 16:52:34 +0200 |
---|---|---|
committer | Mikolaj Boc <mikolaj.boc@qt.io> | 2022-09-01 09:53:24 +0200 |
commit | 1e8316958a7ff67b18749febd4d470b4f959785a (patch) | |
tree | 46ed6e1a9b59b2f8208093b5db76e6b12f4dbbf7 /src/plugins/platforms/cocoa/qcocoaeventdispatcher.mm | |
parent | 2d7b67d4917f7a489ac1b9b11fb129943a844fa9 (diff) |
Hit test only the visible controls in WASM window
The existing code did not take into account that some of the controls
might be missing. Clicking on the window frame, just to the right of
the close button, would then maximize a window, even though this was
not the desired behavior.
Also, simplified most of the checks for existence of controls as
different idioms were used, which were equivalent. Now, all visibility
is computed at the makeTitleBarOptions stage and a single idiom of
tb.subControls.testFlag is used for checking control visibility.
Pick-to: 6.4
Change-Id: I5a94f20fbf527243ff1ae5e6886688d2dd793a6c
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'src/plugins/platforms/cocoa/qcocoaeventdispatcher.mm')
0 files changed, 0 insertions, 0 deletions