diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2022-10-12 15:27:23 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2022-11-28 13:32:50 +0100 |
commit | b104487f072cd04ca4301ba1f10d3ad2e874569e (patch) | |
tree | 920c6e6fcabdcaff9e4c9f8ead2e6b0c289f99eb /src/core/ozone/platform_window_qt.cpp | |
parent | 2d002e42a8b6e711e3c9ca5b6dd3611e9d8426ab (diff) |
Adaptations for 106-based
Change-Id: I2fe91c06ce91dfaace7825a0589b56ee375479b6
Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'src/core/ozone/platform_window_qt.cpp')
-rw-r--r-- | src/core/ozone/platform_window_qt.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/ozone/platform_window_qt.cpp b/src/core/ozone/platform_window_qt.cpp index 4a6331c61..fe8a715ce 100644 --- a/src/core/ozone/platform_window_qt.cpp +++ b/src/core/ozone/platform_window_qt.cpp @@ -38,8 +38,10 @@ void PlatformWindowQt::SetBoundsInPixels(const gfx::Rect& bounds) { if (bounds == bounds_) return; + const bool origin_changed = (bounds_.origin() != bounds.origin()); + bounds_ = bounds; - delegate_->OnBoundsChanged(bounds); + delegate_->OnBoundsChanged({origin_changed}); } bool PlatformWindowQt::CanDispatchEvent(const ui::PlatformEvent& /*ne*/) |