Skip to content

Commit

Permalink
Merge pull request #2622 from cwensley/curtis/mac-window-location-change
Browse files Browse the repository at this point in the history
Mac: Fix firing LocationChanged event when only size changes
  • Loading branch information
cwensley committed Feb 27, 2024
2 parents b07be37 + 89ece4f commit 44bd4aa
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 44bd4aa

Please sign in to comment.