Handle fullscreen parameter in initial/defult-frame-alist for NS.
authorJan Djärv <jan.h.d@swipnet.se>
Sat, 6 Oct 2012 17:31:11 +0000 (19:31 +0200)
committerJan Djärv <jan.h.d@swipnet.se>
Sat, 6 Oct 2012 17:31:11 +0000 (19:31 +0200)
commit04fafa467506fe9ca9b77d9cdc3f8e25cb8fd5d3
treeb979881a01a83b9faf1fe22765e068617a04a2c8
parentd39109c3e111bf2403f6e636ff1273f2701683e7
Handle fullscreen parameter in initial/defult-frame-alist for NS.

* nsfns.m (Fx_create_frame): Call x_default_parameter with
fullscreen/Fullscreen.

* nsterm.h (EmacsView): Rename tbar_height to tibar_height.
tobar_height is new.

* nsterm.m (x_make_frame_visible): Check for fullscreen.
(ns_fullscreen_hook): Activate old style fullscreen with a timer.
(ns_term_init): Set activateIgnoringOtherApps if old style fullscreen.
(windowDidResize:): Check for correct window if old style fullscreen.
Capitalize word in comment.  Remove incorrect comment.
(initFrameFromEmacs:): tbar_height renamed tibar_height.
(windowDidEnterFullScreen:): Toggle toolbar for fullscreen to fix
error in drawing background.
(toggleFullScreen:): Remove comment. Rearrange calls.
Set toolbar values to zero, save old height in tobar_height.
Restore tool bar height when leaving fullscreen.
(canBecomeMainWindow): New function.
src/ChangeLog
src/nsfns.m
src/nsterm.h
src/nsterm.m