Skip to content

Commit f47f306

Browse files
committed
chore(core): remove dead move-size cleanup state
1 parent 88d084c commit f47f306

2 files changed

Lines changed: 0 additions & 10 deletions

File tree

src/Win32.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ internal static class Win32
4848
public const uint DWMWA_COLOR_DEFAULT = 0xFFFFFFFF;
4949

5050
public const uint EVENT_SYSTEM_MOVESIZESTART = 0x000A;
51-
public const uint EVENT_SYSTEM_MOVESIZEEND = 0x000B;
5251
public const uint EVENT_SYSTEM_MINIMIZESTART = 0x0016;
5352
public const uint EVENT_SYSTEM_MINIMIZEEND = 0x0017;
5453
public const uint EVENT_OBJECT_DESTROY = 0x8001;

src/WindowEmbedder.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -279,13 +279,6 @@ private void HandleWindowEvent(uint eventType, IntPtr hwnd, int idObject, int id
279279
return;
280280
}
281281

282-
if (eventType == Win32.EVENT_SYSTEM_MOVESIZEEND)
283-
{
284-
state.IsInMoveSizeSession = false;
285-
FitWindowToHost(state, true, out _);
286-
return;
287-
}
288-
289282
if (eventType == Win32.EVENT_OBJECT_DESTROY
290283
&& idObject == Win32.OBJID_WINDOW
291284
&& idChild == 0)
@@ -541,7 +534,6 @@ public EmbeddedWindowState(
541534
HasRect = hasRect;
542535
OriginalRect = originalRect;
543536
WasVisible = wasVisible;
544-
IsInMoveSizeSession = false;
545537
LastX = int.MinValue;
546538
LastY = int.MinValue;
547539
LastWidth = int.MinValue;
@@ -562,7 +554,6 @@ public EmbeddedWindowState(
562554
public bool HasRect { get; }
563555
public Win32.RECT OriginalRect { get; }
564556
public bool WasVisible { get; }
565-
public bool IsInMoveSizeSession { get; set; }
566557
public int LastX { get; set; }
567558
public int LastY { get; set; }
568559
public int LastWidth { get; set; }

0 commit comments

Comments
 (0)