Shaojun Li
3 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
5 additions and
2 deletions
-
src/Avalonia.X11/X11Window.cs
|
|
|
@ -622,14 +622,17 @@ namespace Avalonia.X11 |
|
|
|
_realSize = nsize; |
|
|
|
_position = npos; |
|
|
|
bool updatedSizeViaScaling = false; |
|
|
|
// Maximized or fullscreen window shouldn't be resized by us.
|
|
|
|
// Window manager will do it.
|
|
|
|
bool skipResize = WindowState != WindowState.Normal; |
|
|
|
if (changedPos) |
|
|
|
{ |
|
|
|
PositionChanged?.Invoke(npos); |
|
|
|
updatedSizeViaScaling = UpdateScaling(); |
|
|
|
updatedSizeViaScaling = UpdateScaling(skipResize); |
|
|
|
} |
|
|
|
UpdateImePosition(); |
|
|
|
|
|
|
|
if (changedSize && !updatedSizeViaScaling && !_overrideRedirect) |
|
|
|
if (changedSize && (skipResize || !updatedSizeViaScaling) && !_overrideRedirect) |
|
|
|
Resized?.Invoke(ClientSize, WindowResizeReason.Unspecified); |
|
|
|
|
|
|
|
}, DispatcherPriority.AsyncRenderTargetResize); |
|
|
|
|