aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
authorStefan Monnier2021-04-13 23:55:47 -0400
committerStefan Monnier2021-04-13 23:55:47 -0400
commit844b8949a71f180d395a237c768b22d91cf91ded (patch)
tree336a7fb79a67d1729a456c837dffa6406eda375e /src/window.c
parent839a9e74e0263f4e75a0c34df39c2e0a57c49438 (diff)
downloademacs-844b8949a71f180d395a237c768b22d91cf91ded.tar.gz
emacs-844b8949a71f180d395a237c768b22d91cf91ded.zip
* src/xdisp.c (wset_update_mode_line): Move from `src/window.c`
Move that function next to its siblings. Also simplify it, since after careful analysis it is now clear that the frame's title's update is already handled elsewhere (in `prepare_menu_bars` and `redisplay_window`) so we just need to make sure the `redisplay` bit is set. * src/window.c (wset_update_mode_line): Move to `src/xdisp.c`. * src/window.h (wset_update_mode_line): Declare.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/window.c b/src/window.c
index 4d5c7e763ec..caf9df6c138 100644
--- a/src/window.c
+++ b/src/window.c
@@ -215,20 +215,6 @@ wset_combination (struct window *w, bool horflag, Lisp_Object val)
215 w->horizontal = horflag; 215 w->horizontal = horflag;
216} 216}
217 217
218static void
219wset_update_mode_line (struct window *w)
220{
221 /* If this window is the selected window on its frame, set the
222 global variable update_mode_lines, so that gui_consider_frame_title
223 will consider this frame's title for redisplay. */
224 Lisp_Object fselected_window = XFRAME (WINDOW_FRAME (w))->selected_window;
225
226 if (WINDOWP (fselected_window) && XWINDOW (fselected_window) == w)
227 update_mode_lines = 42;
228 else
229 w->update_mode_line = true;
230}
231
232/* True if leaf window W doesn't reflect the actual state 218/* True if leaf window W doesn't reflect the actual state
233 of displayed buffer due to its text or overlays change. */ 219 of displayed buffer due to its text or overlays change. */
234 220