diff options
author | Jan Djärv <jan.h.d@swipnet.se> | 2012-10-06 19:31:11 +0200 |
---|---|---|
committer | Jan Djärv <jan.h.d@swipnet.se> | 2012-10-06 19:31:11 +0200 |
commit | 04fafa467506fe9ca9b77d9cdc3f8e25cb8fd5d3 (patch) | |
tree | b979881a01a83b9faf1fe22765e068617a04a2c8 /src/nsfns.m | |
parent | d39109c3e111bf2403f6e636ff1273f2701683e7 (diff) | |
download | emacs-04fafa467506fe9ca9b77d9cdc3f8e25cb8fd5d3.tar.gz |
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.
Diffstat (limited to 'src/nsfns.m')
-rw-r--r-- | src/nsfns.m | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nsfns.m b/src/nsfns.m index 1efadf0cb98..f22198401e0 100644 --- a/src/nsfns.m +++ b/src/nsfns.m @@ -1346,6 +1346,8 @@ This function is an internal primitive--use `make-frame' instead. */) RES_TYPE_NUMBER); x_default_parameter (f, parms, Qalpha, Qnil, "alpha", "Alpha", RES_TYPE_NUMBER); + x_default_parameter (f, parms, Qfullscreen, Qnil, + "fullscreen", "Fullscreen", RES_TYPE_SYMBOL); width = FRAME_COLS (f); height = FRAME_LINES (f); |