equal
deleted
inserted
replaced
1235 [nsWindow setAcceptsMouseMovedEvents:NSPointInRect(mLocation, rect)]; |
1235 [nsWindow setAcceptsMouseMovedEvents:NSPointInRect(mLocation, rect)]; |
1236 |
1236 |
1237 // ensure we repaint the whole window after the resize operation |
1237 // ensure we repaint the whole window after the resize operation |
1238 // (this will also re-enable screen updates, which were disabled above) |
1238 // (this will also re-enable screen updates, which were disabled above) |
1239 // TODO: send PaintEvent |
1239 // TODO: send PaintEvent |
|
1240 |
|
1241 // the macOS may ignore our "setFrame" request, in this, case the |
|
1242 // windowDidMove() will not come and we need to manually resync the |
|
1243 // "java.awt.Window" and NSWindow locations, because "java.awt.Window" |
|
1244 // already uses location ignored by the macOS. |
|
1245 // see sun.lwawt.LWWindowPeer#notifyReshape() |
|
1246 if (!NSEqualRects(rect, [nsWindow frame])) { |
|
1247 [window _deliverMoveResizeEvent]; |
|
1248 } |
1240 }]; |
1249 }]; |
1241 |
1250 |
1242 JNF_COCOA_EXIT(env); |
1251 JNF_COCOA_EXIT(env); |
1243 } |
1252 } |
1244 |
1253 |