Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
8ab70320
Commit
8ab70320
authored
Jan 23, 2011
by
Jan Djärv
Browse files
* nsterm.m (x_set_offset): Set dont_constrain to 0 so the call to
setFrameTopLeftPoint is constrained.
parent
3f680407
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
src/ChangeLog
src/ChangeLog
+5
-0
src/nsterm.m
src/nsterm.m
+5
-2
No files found.
src/ChangeLog
View file @
8ab70320
2011-01-23 Jan Djärv <jan.h.d@swipnet.se>
* nsterm.m (x_set_offset): Set dont_constrain to 0 so the call to
setFrameTopLeftPoint is constrained.
2011-01-23 Paul Eggert <eggert@cs.ucla.edu>
Check return values of some library calls.
src/nsterm.m
View file @
8ab70320
...
...
@@ -1071,8 +1071,8 @@ Free a pool and temporary objects it refers to (callable from C)
? [screen visibleFrame].size.width + f->left_pos - FRAME_PIXEL_WIDTH (f)
: f->left_pos;
/* We use visibleFrame here to take menu bar into account.
Ideally we should also adjust left/top with visibleFrame.o
ffset
. */
Ideally we should also adjust left/top with visibleFrame.o
rigin
. */
f->top_pos = f->size_hint_flags & YNegative
? ([screen visibleFrame].size.height + f->top_pos
- FRAME_PIXEL_HEIGHT (f) - FRAME_NS_TITLEBAR_HEIGHT (f)
...
...
@@ -1082,6 +1082,9 @@ Free a pool and temporary objects it refers to (callable from C)
if (f->left_pos < 100)
f->left_pos = 100; /* don't overlap menu */
#endif
/* Constrain the setFrameTopLeftPoint so we don't move behind the
menu bar. */
f->output_data.ns->dont_constrain = 0;
[[view window] setFrameTopLeftPoint:
NSMakePoint (SCREENMAXBOUND (f->left_pos),
SCREENMAXBOUND ([fscreen frame].size.height
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment