diff options
| author | Jan Djärv | 2009-07-01 14:02:27 +0000 |
|---|---|---|
| committer | Jan Djärv | 2009-07-01 14:02:27 +0000 |
| commit | 3f1c666608f7ca4aeacbcbe5102c2c2c63e345e9 (patch) | |
| tree | 3249bf002f7557d4bd697d94f61e61042f0aad1f /doc | |
| parent | 62aadce704ec87289bf7a666ad29ccc33e19f07d (diff) | |
| download | emacs-3f1c666608f7ca4aeacbcbe5102c2c2c63e345e9.tar.gz emacs-3f1c666608f7ca4aeacbcbe5102c2c2c63e345e9.zip | |
* emacs.c (USAGE3, standard_args): Add -mm and --maximized.
* frame.c: Qmaximized is new.
(x_set_frame_parameters): Do not handle fullscreen specially.
Only set width and height if explicitly set.
(x_set_fullscreen): Handle Qmaximized.
(x_set_font, x_figure_window_size): Do not handle fullscreen specially.
(syms_of_frame): Initialize Qmaximized.
* frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED. Declare
Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
* xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
for Expose event. Add call to x_check_fullscreen for MapNotify event.
Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
set gravity to NorthWestGravity when USE_GTK.
(set_wm_state): New function.
(do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
(x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
(x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
or the case when no window manager is running. That means remove calls
to x_real_positions and x_fullscreen_adjust.
* gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
(xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
flush_and_sync.
(xg_height_changed): New function.
(xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
and gtk_window_set_policy. Set frame gravity after parsing the geometry
string.
(xg_update_frame_menubar, free_frame_menubar)
(xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
(update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
Remove calls to xg_frame_set_char_size.
* startup.el (command-line-x-option-alist): Add -mm and --maximized.
* NEWS: Mention maximized.
* frames.texi (Size Parameters): Mention maximized for fullscreen.
* xresources.texi (Table of Resources): Mention maximized for
fullscreen.
* cmdargs.texi (Window Size X): -mm/--maximized is new.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/ChangeLog | 7 | ||||
| -rw-r--r-- | doc/emacs/cmdargs.texi | 15 | ||||
| -rw-r--r-- | doc/emacs/xresources.texi | 4 | ||||
| -rw-r--r-- | doc/lispref/ChangeLog | 4 | ||||
| -rw-r--r-- | doc/lispref/frames.texi | 12 |
5 files changed, 33 insertions, 9 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index c3cd2ed798f..7aa53be2d99 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2009-07-01 Jan Djärv <jan.h.d@swipnet.se> | ||
| 2 | |||
| 3 | * xresources.texi (Table of Resources): Mention maximized for | ||
| 4 | fullscreen. | ||
| 5 | |||
| 6 | * cmdargs.texi (Window Size X): -mm/--maximized is new. | ||
| 7 | |||
| 1 | 2009-07-01 Chong Yidong <cyd@stupidchicken.com> | 8 | 2009-07-01 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 9 | ||
| 3 | * anti.texi (Antinews): Correct the list of removed platforms. | 10 | * anti.texi (Antinews): Correct the list of removed platforms. |
diff --git a/doc/emacs/cmdargs.texi b/doc/emacs/cmdargs.texi index 2d4d8b3d1a1..1438c19c123 100644 --- a/doc/emacs/cmdargs.texi +++ b/doc/emacs/cmdargs.texi | |||
| @@ -1184,7 +1184,16 @@ the initial frame. | |||
| 1184 | @itemx --fullscreen | 1184 | @itemx --fullscreen |
| 1185 | @opindex --fullscreen | 1185 | @opindex --fullscreen |
| 1186 | @cindex fullscreen, command-line argument | 1186 | @cindex fullscreen, command-line argument |
| 1187 | Specify that width and height shall be the size of the screen. | 1187 | Specify that width and height shall be the size of the screen. Normally |
| 1188 | no window manager decorations are shown. | ||
| 1189 | |||
| 1190 | @item -mm | ||
| 1191 | @opindex -mm | ||
| 1192 | @itemx --maximized | ||
| 1193 | @opindex --maximized | ||
| 1194 | @cindex maximized, command-line argument | ||
| 1195 | Specify that the Emacs frame shall be maximized. This normally | ||
| 1196 | means that the frame has window manager decorations. | ||
| 1188 | 1197 | ||
| 1189 | @item -fh | 1198 | @item -fh |
| 1190 | @opindex -fh | 1199 | @opindex -fh |
| @@ -1258,8 +1267,8 @@ size with no tool bar, use an X resource to specify ``no tool bar'' | |||
| 1258 | (@pxref{Table of Resources}); then Emacs will already know there's no | 1267 | (@pxref{Table of Resources}); then Emacs will already know there's no |
| 1259 | tool bar when it processes the specified geometry. | 1268 | tool bar when it processes the specified geometry. |
| 1260 | 1269 | ||
| 1261 | When using one of @samp{--fullscreen}, @samp{--fullwidth} or | 1270 | When using one of @samp{--fullscreen}, @samp{--maximized}, @samp{--fullwidth} |
| 1262 | @samp{--fullheight} there may be some space around the frame | 1271 | or @samp{--fullheight} there may be some space around the frame |
| 1263 | anyway. That is because Emacs rounds the sizes so they are an | 1272 | anyway. That is because Emacs rounds the sizes so they are an |
| 1264 | even number of character heights and widths. | 1273 | even number of character heights and widths. |
| 1265 | 1274 | ||
diff --git a/doc/emacs/xresources.texi b/doc/emacs/xresources.texi index a2deb1530ae..f471b9dd148 100644 --- a/doc/emacs/xresources.texi +++ b/doc/emacs/xresources.texi | |||
| @@ -217,8 +217,8 @@ all frames. | |||
| 217 | @ifnottex | 217 | @ifnottex |
| 218 | @item @code{fullscreen} (class @code{Fullscreen}) | 218 | @item @code{fullscreen} (class @code{Fullscreen}) |
| 219 | The desired fullscreen size. The value can be one of @code{fullboth}, | 219 | The desired fullscreen size. The value can be one of @code{fullboth}, |
| 220 | @code{fullwidth} or @code{fullheight}, which correspond to | 220 | @code{maximized}, @code{fullwidth} or @code{fullheight}, which correspond to |
| 221 | the command-line options @samp{-fs}, @samp{-fw}, and @samp{-fh} | 221 | the command-line options @samp{-fs}, @samp{-mm}, @samp{-fw}, and @samp{-fh} |
| 222 | (@pxref{Window Size X}). | 222 | (@pxref{Window Size X}). |
| 223 | 223 | ||
| 224 | Note that this applies to the initial frame only. | 224 | Note that this applies to the initial frame only. |
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index dbff044e68c..e985de0cc37 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2009-07-01 Jan Djärv <jan.h.d@swipnet.se> | ||
| 2 | |||
| 3 | * frames.texi (Size Parameters): Mention maximized for fullscreen. | ||
| 4 | |||
| 1 | 2009-06-24 Chong Yidong <cyd@stupidchicken.com> | 5 | 2009-06-24 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 6 | ||
| 3 | * display.texi (Window Systems): Add ns to the list. | 7 | * display.texi (Window Systems): Add ns to the list. |
diff --git a/doc/lispref/frames.texi b/doc/lispref/frames.texi index 87127c9cd66..85bf2bb75e7 100644 --- a/doc/lispref/frames.texi +++ b/doc/lispref/frames.texi | |||
| @@ -609,11 +609,15 @@ the @code{user-position} parameter (see above) does for the position | |||
| 609 | parameters @code{top} and @code{left}. | 609 | parameters @code{top} and @code{left}. |
| 610 | 610 | ||
| 611 | @item fullscreen | 611 | @item fullscreen |
| 612 | Specify that width, height or both shall be set to the size of the screen. | 612 | Specify that width, height or both shall be maximized. |
| 613 | The value @code{fullwidth} specifies that width shall be the size of the | 613 | The value @code{fullwidth} specifies that width shall as wide as possible. |
| 614 | screen. The value @code{fullheight} specifies that height shall be the | 614 | The value @code{fullheight} specifies that height shall be as tall as |
| 615 | size of the screen. The value @code{fullboth} specifies that both the | 615 | possible. The value @code{fullboth} specifies that both the |
| 616 | width and the height shall be set to the size of the screen. | 616 | width and the height shall be set to the size of the screen. |
| 617 | The value @code{maximized} specifies that the frame shall be maximized. | ||
| 618 | The difference between @code{maximized} and @code{fullboth} is that | ||
| 619 | the first does have window manager decorations but the second does not | ||
| 620 | and thus really covers the whole screen. | ||
| 617 | @end table | 621 | @end table |
| 618 | 622 | ||
| 619 | @node Layout Parameters | 623 | @node Layout Parameters |