diff options
| author | Assam Boudjelthia <assam.boudjelthia@qt.io> | 2025-05-20 15:49:13 +0300 |
|---|---|---|
| committer | Assam Boudjelthia <assam.boudjelthia@qt.io> | 2025-05-23 11:42:02 +0300 |
| commit | e96a4b84e136d065054600c07bf5fae17f3049ce (patch) | |
| tree | 1954c5c775de913f0e905463e8f21f200c906c31 /src/openglwidgets/qopenglwidget.cpp | |
| parent | 6de8ce2af383c8d164c65ffca7dc845c52e4f2d2 (diff) | |
Android: consider DecorView insets at app startup
Set the initial safe area margins based on the decor view as a
workaround since setOnApplyWindowInsetsListener() is not being called
reliably at startups. This way we can get the app's initial insets at
startup, then after that rely on each window reporting its insets.
And apply this initial inset only for top level windows that match
the screen size, i.e. we assume edge-to-edge is enable in that case.
Pick-to: 6.9
Task-number: QTBUG-135808
Fixes: QTBUG-135283
Fixes: QTBUG-135227
Change-Id: Ic5771809c94302b927ccc67ccc07c73ccc73b91d
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/openglwidgets/qopenglwidget.cpp')
0 files changed, 0 insertions, 0 deletions
