fix: pend bounds change when moving BrowserWindows (#33288)
* fix: ensure bounds changes apply when moving windows * chore: remove unused queue include
This commit is contained in:
parent
c262eac441
commit
f5112632a3
3 changed files with 18 additions and 0 deletions
|
@ -699,6 +699,13 @@ bool NativeWindowViews::IsFullscreen() const {
|
|||
}
|
||||
|
||||
void NativeWindowViews::SetBounds(const gfx::Rect& bounds, bool animate) {
|
||||
#if BUILDFLAG(IS_WIN)
|
||||
if (is_moving_ || is_resizing_) {
|
||||
pending_bounds_change_ = bounds;
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX)
|
||||
// On Linux and Windows the minimum and maximum size should be updated with
|
||||
// window size when window is not resizable.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue