diff options
| author | Jan Djärv | 2011-01-23 14:28:14 +0100 |
|---|---|---|
| committer | Jan Djärv | 2011-01-23 14:28:14 +0100 |
| commit | 8ab7032073626f5153c4a42f6ecb4697efc80b8b (patch) | |
| tree | 93039ea8b826ae226f8fd68f380ceecf6ab9c725 /src | |
| parent | 3f6804070085b85cc94b54d632a07f04f6bbf572 (diff) | |
| download | emacs-8ab7032073626f5153c4a42f6ecb4697efc80b8b.tar.gz emacs-8ab7032073626f5153c4a42f6ecb4697efc80b8b.zip | |
* nsterm.m (x_set_offset): Set dont_constrain to 0 so the call to
setFrameTopLeftPoint is constrained.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/nsterm.m | 7 |
2 files changed, 10 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index fbc1b2175b8..134e289681c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-01-23 Jan Djärv <jan.h.d@swipnet.se> | ||
| 2 | |||
| 3 | * nsterm.m (x_set_offset): Set dont_constrain to 0 so the call to | ||
| 4 | setFrameTopLeftPoint is constrained. | ||
| 5 | |||
| 1 | 2011-01-23 Paul Eggert <eggert@cs.ucla.edu> | 6 | 2011-01-23 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 7 | ||
| 3 | Check return values of some library calls. | 8 | Check return values of some library calls. |
diff --git a/src/nsterm.m b/src/nsterm.m index 1d86b3ec866..7a812481738 100644 --- a/src/nsterm.m +++ b/src/nsterm.m | |||
| @@ -1071,8 +1071,8 @@ x_set_offset (struct frame *f, int xoff, int yoff, int change_grav) | |||
| 1071 | ? [screen visibleFrame].size.width + f->left_pos - FRAME_PIXEL_WIDTH (f) | 1071 | ? [screen visibleFrame].size.width + f->left_pos - FRAME_PIXEL_WIDTH (f) |
| 1072 | : f->left_pos; | 1072 | : f->left_pos; |
| 1073 | /* We use visibleFrame here to take menu bar into account. | 1073 | /* We use visibleFrame here to take menu bar into account. |
| 1074 | Ideally we should also adjust left/top with visibleFrame.offset. */ | 1074 | Ideally we should also adjust left/top with visibleFrame.origin. */ |
| 1075 | 1075 | ||
| 1076 | f->top_pos = f->size_hint_flags & YNegative | 1076 | f->top_pos = f->size_hint_flags & YNegative |
| 1077 | ? ([screen visibleFrame].size.height + f->top_pos | 1077 | ? ([screen visibleFrame].size.height + f->top_pos |
| 1078 | - FRAME_PIXEL_HEIGHT (f) - FRAME_NS_TITLEBAR_HEIGHT (f) | 1078 | - FRAME_PIXEL_HEIGHT (f) - FRAME_NS_TITLEBAR_HEIGHT (f) |
| @@ -1082,6 +1082,9 @@ x_set_offset (struct frame *f, int xoff, int yoff, int change_grav) | |||
| 1082 | if (f->left_pos < 100) | 1082 | if (f->left_pos < 100) |
| 1083 | f->left_pos = 100; /* don't overlap menu */ | 1083 | f->left_pos = 100; /* don't overlap menu */ |
| 1084 | #endif | 1084 | #endif |
| 1085 | /* Constrain the setFrameTopLeftPoint so we don't move behind the | ||
| 1086 | menu bar. */ | ||
| 1087 | f->output_data.ns->dont_constrain = 0; | ||
| 1085 | [[view window] setFrameTopLeftPoint: | 1088 | [[view window] setFrameTopLeftPoint: |
| 1086 | NSMakePoint (SCREENMAXBOUND (f->left_pos), | 1089 | NSMakePoint (SCREENMAXBOUND (f->left_pos), |
| 1087 | SCREENMAXBOUND ([fscreen frame].size.height | 1090 | SCREENMAXBOUND ([fscreen frame].size.height |