aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
authorLars Ingebrigtsen2022-04-29 12:42:06 +0200
committerLars Ingebrigtsen2022-04-29 12:42:15 +0200
commite313cae71fc38e29849e68b421a16a1014626d04 (patch)
treee5088eb8cd4bb704cadda615183c95f7132d21c1 /src/window.c
parent5c606a46bfcb3851365de2d4ffbff9e88fc1c21c (diff)
downloademacs-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.c5
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.
8341Functions specified by the default value are called for each frame if 8341Functions specified by the default value are called for each frame if
8342at least one window on that frame has been added or changed its buffer 8342at least one window on that frame has been added or changed its buffer
8343or its total or body size since the last redisplay. In this case the 8343or its total or body size since the last redisplay. In this case the
8344frame is passed as argument. */); 8344frame is passed as argument.
8345
8346For instance, to hide the title bar when the frame is maximized, you
8347can 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,