Bug 1710533 Comment 7 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

I am not sure why desktopDelta exists in [nsBaseWidget::ResizeClient()](https://searchfox.org/mozilla-central/rev/aec7c53cdbbff65305d41c9d805a70efc0e902ed/widget/nsBaseWidget.cpp#1512).

It is zero in normal situation on Windows. I saw non-zero value with STR of  Bug 1701451. In this case, window size was updated unexpectedly by ::UpdateLayeredWindow(). And [nsBaseWidget::ResizeClient()](https://searchfox.org/mozilla-central/rev/aec7c53cdbbff65305d41c9d805a70efc0e902ed/view/nsView.cpp#307) does not care the desktopDelta for comparing  curBounds.TopLeft() and newBounds for triggering nsBaseWidget::ResizeClient().
I am not sure why desktopDelta exists in [nsBaseWidget::ResizeClient()](https://searchfox.org/mozilla-central/rev/aec7c53cdbbff65305d41c9d805a70efc0e902ed/widget/nsBaseWidget.cpp#1512).

It is zero in normal situation on Windows. I saw non-zero value with STR of  Bug 1701451. In this case, window size was updated unexpectedly by ::UpdateLayeredWindow(). And [nsView::DoResetWidgetBounds()](https://searchfox.org/mozilla-central/rev/aec7c53cdbbff65305d41c9d805a70efc0e902ed/view/nsView.cpp#307) does not care the desktopDelta for comparing  curBounds.TopLeft() and newBounds for triggering nsBaseWidget::ResizeClient().

Back to Bug 1710533 Comment 7