]> code.delx.au - gnu-emacs/commit
Fixed NextStep fullscreen issue (bug#22468)
authorAnders Lindgren <andlind@gmail.com>
Tue, 26 Jan 2016 12:51:59 +0000 (13:51 +0100)
committerAnders Lindgren <andlind@gmail.com>
Tue, 26 Jan 2016 12:51:59 +0000 (13:51 +0100)
commit60902756b0d794b16b9c1c67c4c40a3ac04d1c1b
tree80918668d54e7b8b878437a49207606978301f38
parentda976cff352bdea6adc2667582a56eb4061bb5f6
Fixed NextStep fullscreen issue (bug#22468)

When in fullscreen mode, `[screen visibleFrame]' sometimes
includes, sometimes excludes the menu bar. This could cause
a frame to be placed too low when in fullscreen mode.

* src/nsterm.m (ns_menu_bar_should_be_hidden): Trace.
(constrain_frame_rect): New parameter, isFullscreen, when true don't
query the height of the menu bar.
(ns_constrain_all_frames): Pass `false' (isFullscreen) to
`constrain_frame_rect'.
([EmacsView initFrameFromEmacs:]): Trace.
([EmacsView isFullscreen]): Trace.
([EmacsWindow constrainFrameRect:toScreen:]): Pass fullscreen
state to `constrain_frame_rect'.
src/nsterm.m