aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan Djärv2011-01-22 12:33:32 +0100
committerJan Djärv2011-01-22 12:33:32 +0100
commit3fb695589ee812eb8221a72dcdc55cb75e0ca71d (patch)
tree35e2d2d2197039aa90dcafd15a95e30317caa00c /src
parente02ea74b7e42db69e6bb333a176d26b2f409752e (diff)
downloademacs-3fb695589ee812eb8221a72dcdc55cb75e0ca71d.tar.gz
emacs-3fb695589ee812eb8221a72dcdc55cb75e0ca71d.zip
* nsterm.m (constrainFrameRect): Only constrain the first time called.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/nsterm.m4
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 @@
12011-01-22 Jan Djärv <jan.h.d@swipnet.se>
2
3 * nsterm.m (constrainFrameRect): Only constrain the first time called.
4
12011-01-21 Jan Djärv <jan.h.d@swipnet.se> 52011-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;