diff options
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/nsterm.m | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 2377cb6d9cd..fcf8218d670 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2011-01-22 Jan Djärv <jan.h.d@swipnet.se> | ||
| 2 | |||
| 3 | * nsterm.m (constrainFrameRect): Only constrain the first time called. | ||
| 4 | |||
| 1 | 2011-01-21 Jan Djärv <jan.h.d@swipnet.se> | 5 | 2011-01-21 Jan Djärv <jan.h.d@swipnet.se> |
| 2 | 6 | ||
| 3 | * nsterm.m (x_set_offset, windowDidMove): When calculating y, use first | 7 | * nsterm.m (x_set_offset, windowDidMove): When calculating y, use first |
diff --git a/src/nsterm.m b/src/nsterm.m index da438296fff..1d86b3ec866 100644 --- a/src/nsterm.m +++ b/src/nsterm.m | |||
| @@ -5063,7 +5063,6 @@ ns_term_shutdown (int sig) | |||
| 5063 | 5063 | ||
| 5064 | NSTRACE (windowDidBecomeKey); | 5064 | NSTRACE (windowDidBecomeKey); |
| 5065 | 5065 | ||
| 5066 | emacsframe->output_data.ns->dont_constrain = 1; | ||
| 5067 | if (emacsframe != old_focus) | 5066 | if (emacsframe != old_focus) |
| 5068 | dpyinfo->x_focus_frame = emacsframe; | 5067 | dpyinfo->x_focus_frame = emacsframe; |
| 5069 | 5068 | ||
| @@ -5678,6 +5677,7 @@ ns_term_shutdown (int sig) | |||
| 5678 | if (f->output_data.ns->dont_constrain) | 5677 | if (f->output_data.ns->dont_constrain) |
| 5679 | return frameRect; | 5678 | return frameRect; |
| 5680 | 5679 | ||
| 5680 | f->output_data.ns->dont_constrain = 1; | ||
| 5681 | return [super constrainFrameRect:frameRect toScreen:screen]; | 5681 | return [super constrainFrameRect:frameRect toScreen:screen]; |
| 5682 | } | 5682 | } |
| 5683 | 5683 | ||
| @@ -5685,8 +5685,6 @@ ns_term_shutdown (int sig) | |||
| 5685 | /* called only on resize clicks by special case in EmacsApp-sendEvent */ | 5685 | /* called only on resize clicks by special case in EmacsApp-sendEvent */ |
| 5686 | - (void)mouseDown: (NSEvent *)theEvent | 5686 | - (void)mouseDown: (NSEvent *)theEvent |
| 5687 | { | 5687 | { |
| 5688 | struct frame *f = ((EmacsView *)[self delegate])->emacsframe; | ||
| 5689 | f->output_data.ns->dont_constrain = 1; | ||
| 5690 | if (ns_in_resize) | 5688 | if (ns_in_resize) |
| 5691 | { | 5689 | { |
| 5692 | NSSize size = [[theEvent window] frame].size; | 5690 | NSSize size = [[theEvent window] frame].size; |