comparison src/ChangeLog @ 112396:e79e716435f4

Make Nextstep port handle multiple screens for resize and move. * nsterm.h (ns_output): Add dont_constrain and zooming. (EmacsView): Add ns_userRect. * nsterm.m (keyDown): If ns_right_alternate_modifier is Qleft, check if ns_alternate_modifier is none. * nsterm.m (x_set_offset, windowDidMove): When calculating y, use first screen, not the window screen. (x_set_window_size): Remove constraints. Calculate origin.y only if zooming is 0 and without referring to a screen. (windowWillResize): Don't modify frameSize. (windowDidBecomeKey, mouseDown): Set dont_constrain to 1. (initFrameFromEmacs): Initialize ns_userRect. (windowShouldZoom): Set zooming to one. Remove all other code. (windowWillUseStandardFrame): Move static ns_userRect to EmacsView. Zero it after restore. (constrainFrameRect): New method for EmacsWindow. (mouseDragged): Always post NSWindowDidResizeNotification after call to windowWillResize.
author Jan D. <jan.h.d@swipnet.se>
date Fri, 21 Jan 2011 15:19:44 +0100
parents f1de024f822c
children 4b27e6d58d2c
comparison
equal deleted inserted replaced
112395:f1de024f822c 112396:e79e716435f4
1 2011-01-21 Jan Djärv <jan.h.d@swipnet.se> 1 2011-01-21 Jan Djärv <jan.h.d@swipnet.se>
2
3 * nsterm.m (x_set_offset, windowDidMove): When calculating y, use first
4 screen, not the window screen.
5 (x_set_window_size): Remove constraints.
6 Calculate origin.y only if zooming is 0 and without referring to a
7 screen.
8 (windowWillResize): Don't modify frameSize.
9 (windowDidBecomeKey, mouseDown): Set dont_constrain to 1.
10 (initFrameFromEmacs): Initialize ns_userRect.
11 (windowShouldZoom): Set zooming to one. Remove all other code.
12 (windowWillUseStandardFrame): Move static ns_userRect to EmacsView.
13 Zero it after restore.
14 (constrainFrameRect): New method for EmacsWindow.
15 (mouseDragged): Always post NSWindowDidResizeNotification after call to
16 windowWillResize.
17
18 * nsterm.h (ns_output): Add dont_constrain and zooming.
19 (EmacsView): Add ns_userRect.
2 20
3 * nsterm.m (keyDown): If ns_right_alternate_modifier is Qleft, check 21 * nsterm.m (keyDown): If ns_right_alternate_modifier is Qleft, check
4 if ns_alternate_modifier is none. 22 if ns_alternate_modifier is none.
5 23
6 2011-01-20 Jan Djärv <jan.h.d@swipnet.se> 24 2011-01-20 Jan Djärv <jan.h.d@swipnet.se>