diff options
| author | Martin Rudalics | 2015-02-11 09:07:24 +0100 |
|---|---|---|
| committer | Martin Rudalics | 2015-02-11 09:07:24 +0100 |
| commit | 02138cb0b88c5f6addf891d725967d9867eda3f9 (patch) | |
| tree | 073bd7e1c58cee1f02a52ff8eabcfa6dd24a6fb2 /doc | |
| parent | 6ebbeafc94a35e49fc3a842b5f5fbd7b069ce936 (diff) | |
| download | emacs-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/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/lispref/frames.texi | 33 |
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 @@ | |||
| 1 | 2015-02-11 Martin Rudalics <rudalics@gmx.at> | ||
| 2 | |||
| 3 | * frames.texi (Size Parameters): Update description of | ||
| 4 | fullscreen frame parameter. | ||
| 5 | |||
| 1 | 2015-02-09 Eli Zaretskii <eliz@gnu.org> | 6 | 2015-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 |
| 733 | Specify that width, height or both shall be maximized. The value | 734 | Specify 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 |
| 735 | The value @code{fullheight} specifies that height shall be as tall as | 736 | value @code{fullheight} specifies that height shall be as tall as |
| 736 | possible. The value @code{fullboth} specifies that both the width and | 737 | possible. The value @code{fullboth} specifies that both the width and |
| 737 | the height shall be set to the size of the screen. The value | 738 | the 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. |
| 739 | difference between @code{maximized} and @code{fullboth} is that the | 740 | |
| 740 | former can still be resized by dragging window manager decorations | 741 | The difference between @code{maximized} and @code{fullboth} is that a |
| 741 | with the mouse, while the latter really covers the whole screen and | 742 | maximized frame usually keeps its title bar and the buttons for resizing |
| 742 | does not allow resizing by mouse dragging. | 743 | and closing the frame. Also, maximized frames typically avoid hiding |
| 744 | any task bar or panels displayed on the desktop. ``Fullboth'' frames, | ||
| 745 | on the other hand, usually omit the title bar and occupy the entire | ||
| 746 | available screen space. | ||
| 747 | |||
| 748 | ``Fullheight'' and ``fullwidth'' frames are more similar to maximized | ||
| 749 | frames in this regard. However, these typically display an external | ||
| 750 | border which might be absent with maximized frames. Hence the heights | ||
| 751 | of maximized and fullheight frames and the widths of maximized and | ||
| 752 | fullwidth frames often differ by a few pixels. | ||
| 743 | 753 | ||
| 744 | With some window managers you may have to customize the variable | 754 | With 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 |
| 746 | non-@code{nil} value in order to make a frame appear ``maximized'' or | 756 | make a frame truly appear ``maximized'' or ``fullscreen''. Moreover, |
| 747 | ``fullscreen''. | 757 | some window managers might not support smooth transition between the |
| 758 | various 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 |