Skip to content

Commit

Permalink
Mac: Fix firing LocationChanged event when only size changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cwensley committed Feb 26, 2024
1 parent b07be37 commit 89ece4f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Eto.Mac/Forms/MacWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,14 @@ public override void AttachEvent(string id)
handler.Callback.OnSizeChanged(handler.Widget, EventArgs.Empty);
oldSize = newSize;
}
var old = handler.oldLocation;
handler.oldLocation = null;
var newLocation = handler.Location;
if (old != newLocation)
{
handler.oldLocation = newLocation;
handler.Callback.OnLocationChanged(handler.Widget, EventArgs.Empty);
}
});
}
break;
Expand Down

0 comments on commit 89ece4f

Please sign in to comment.