aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorMartin Rudalics2015-02-11 09:07:24 +0100
committerMartin Rudalics2015-02-11 09:07:24 +0100
commit02138cb0b88c5f6addf891d725967d9867eda3f9 (patch)
tree073bd7e1c58cee1f02a52ff8eabcfa6dd24a6fb2 /doc
parent6ebbeafc94a35e49fc3a842b5f5fbd7b069ce936 (diff)
downloademacs-02138cb0b88c5f6addf891d725967d9867eda3f9.tar.gz
emacs-02138cb0b88c5f6addf891d725967d9867eda3f9.zip
Improve toggling fullscreen state of frames.
* frame.el (toggle-frame-maximized, toggle-frame-fullscreen): Rename frame parameter `maximized' to `fullscreen-restore'. Restore fullwidth/-height after fullboth state. Update doc-strings. * w32term.c (w32_read_socket): In SIZE_MAXIMIZED and SIZE_RESTORED cases correctly handle `maximized' value for the `fullscreen' parameter. Don't use the 'maximized' parameter any more. (w32fullscreen_hook): Include menu bar height when calculating new text height in FULLSCREEN_BOTH case. * xterm.c (do_ewmh_fullscreen): Handle transition from FULLSCREEN_BOTH to FULLSCREEN_MAXIMIZED when x_frame_normalize_before_maximize is set. * frames.texi (Size Parameters): Update description of fullscreen frame parameter.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/ChangeLog5
-rw-r--r--doc/lispref/frames.texi33
2 files changed, 28 insertions, 10 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index 0c76a6b8b34..3e5d9acba86 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,8 @@
12015-02-11 Martin Rudalics <rudalics@gmx.at>
2
3 * frames.texi (Size Parameters): Update description of
4 fullscreen frame parameter.
5
12015-02-09 Eli Zaretskii <eliz@gnu.org> 62015-02-09 Eli Zaretskii <eliz@gnu.org>
2 7
3 * positions.texi (Screen Lines): Update the documentation of 8 * positions.texi (Screen Lines): Update the documentation of
diff --git a/doc/lispref/frames.texi b/doc/lispref/frames.texi
index a6f4081532d..559f4cc56dc 100644
--- a/doc/lispref/frames.texi
+++ b/doc/lispref/frames.texi
@@ -701,6 +701,7 @@ parameters represent the user's stated preference; otherwise, use
701@code{nil}. 701@code{nil}.
702@end table 702@end table
703 703
704
704@node Size Parameters 705@node Size Parameters
705@subsubsection Size Parameters 706@subsubsection Size Parameters
706@cindex window size on display 707@cindex window size on display
@@ -731,22 +732,34 @@ user-position}) does for the position parameters @code{top} and
731@vindex fullscreen, a frame parameter 732@vindex fullscreen, a frame parameter
732@item fullscreen 733@item fullscreen
733Specify that width, height or both shall be maximized. The value 734Specify that width, height or both shall be maximized. The value
734@code{fullwidth} specifies that width shall be as wide as possible. 735@code{fullwidth} specifies that width shall be as wide as possible. The
735The value @code{fullheight} specifies that height shall be as tall as 736value @code{fullheight} specifies that height shall be as tall as
736possible. The value @code{fullboth} specifies that both the width and 737possible. The value @code{fullboth} specifies that both the width and
737the height shall be set to the size of the screen. The value 738the height shall be set to the size of the screen. The value
738@code{maximized} specifies that the frame shall be maximized. The 739@code{maximized} specifies that the frame shall be maximized.
739difference between @code{maximized} and @code{fullboth} is that the 740
740former can still be resized by dragging window manager decorations 741The difference between @code{maximized} and @code{fullboth} is that a
741with the mouse, while the latter really covers the whole screen and 742maximized frame usually keeps its title bar and the buttons for resizing
742does not allow resizing by mouse dragging. 743and closing the frame. Also, maximized frames typically avoid hiding
744any task bar or panels displayed on the desktop. ``Fullboth'' frames,
745on the other hand, usually omit the title bar and occupy the entire
746available screen space.
747
748``Fullheight'' and ``fullwidth'' frames are more similar to maximized
749frames in this regard. However, these typically display an external
750border which might be absent with maximized frames. Hence the heights
751of maximized and fullheight frames and the widths of maximized and
752fullwidth frames often differ by a few pixels.
743 753
744With some window managers you may have to customize the variable 754With some window managers you may have to customize the variable
745@code{frame-resize-pixelwise} (@pxref{Size and Position}) to a 755@code{frame-resize-pixelwise} (@pxref{Size and Position}) in order to
746non-@code{nil} value in order to make a frame appear ``maximized'' or 756make a frame truly appear ``maximized'' or ``fullscreen''. Moreover,
747``fullscreen''. 757some window managers might not support smooth transition between the
758various fullscreen or maximization states. Customizing the variable
759@code{x-frame-normalize-before-maximize} can help to overcome that.
748@end table 760@end table
749 761
762
750@node Layout Parameters 763@node Layout Parameters
751@subsubsection Layout Parameters 764@subsubsection Layout Parameters
752@cindex layout parameters of frames 765@cindex layout parameters of frames