Skip to content

Commit

Permalink
Only Send NSWindowDidResizeNotification When Resizing, Not When Moving
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBrokenRail committed May 26, 2021
1 parent c9b4a96 commit af6acff
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions AppKit/X11.backend/X11Display.m
Original file line number Diff line number Diff line change
Expand Up @@ -1216,11 +1216,13 @@ - (void) postXEvent: (XEvent *) ev {
NSLog(@"ReparentNotify");
break;

case ConfigureNotify:
case ConfigureNotify:;
O2Rect oldFrame = [window frame];
[window frameChanged];
O2Rect newFrame = [window frame];
[delegate platformWindow: window
frameChanged: [window frame]
didSize: YES];
didSize: !NSEqualSizes(newFrame.size, oldFrame.size)];
break;

case ConfigureRequest:
Expand Down

0 comments on commit af6acff

Please sign in to comment.