diff options
| author | Lars Ingebrigtsen | 2022-04-29 12:42:06 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2022-04-29 12:42:15 +0200 |
| commit | e313cae71fc38e29849e68b421a16a1014626d04 (patch) | |
| tree | e5088eb8cd4bb704cadda615183c95f7132d21c1 /src/window.c | |
| parent | 5c606a46bfcb3851365de2d4ffbff9e88fc1c21c (diff) | |
| download | emacs-e313cae71fc38e29849e68b421a16a1014626d04.tar.gz emacs-e313cae71fc38e29849e68b421a16a1014626d04.zip | |
Add helper function to remove title bar when maximizing frames
* lisp/frame.el (toggle-frame-maximized): Mention it.
(frame-hide-title-bar-when-maximized): New function (bug#31968).
Adapted from code by Jonathan Kyle Mitchell.
* src/window.c (syms_of_window): Mention it.
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c index 48da7839314..ad0f54000c0 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -8341,7 +8341,10 @@ In this case the window is passed as argument. | |||
| 8341 | Functions specified by the default value are called for each frame if | 8341 | Functions specified by the default value are called for each frame if |
| 8342 | at least one window on that frame has been added or changed its buffer | 8342 | at least one window on that frame has been added or changed its buffer |
| 8343 | or its total or body size since the last redisplay. In this case the | 8343 | or its total or body size since the last redisplay. In this case the |
| 8344 | frame is passed as argument. */); | 8344 | frame is passed as argument. |
| 8345 | |||
| 8346 | For instance, to hide the title bar when the frame is maximized, you | ||
| 8347 | can add `frame-hide-title-bar-when-maximized' to this variable. */); | ||
| 8345 | Vwindow_size_change_functions = Qnil; | 8348 | Vwindow_size_change_functions = Qnil; |
| 8346 | 8349 | ||
| 8347 | DEFVAR_LISP ("window-selection-change-functions", Vwindow_selection_change_functions, | 8350 | DEFVAR_LISP ("window-selection-change-functions", Vwindow_selection_change_functions, |