diff options
| author | Karoly Lorentey | 2004-06-05 22:34:24 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2004-06-05 22:34:24 +0000 |
| commit | 4181ad9cfe23605716cd373c493398f18f84fe02 (patch) | |
| tree | 22639080665548a40f4f3ceab32278e25274c2cd /src | |
| parent | 3d63dd9d07a4ce2fbff5c4dd674f2593c1e3a278 (diff) | |
| download | emacs-4181ad9cfe23605716cd373c493398f18f84fe02.tar.gz emacs-4181ad9cfe23605716cd373c493398f18f84fe02.zip | |
Make sure the SIGWINCH handler is always set (rep. by Yoshiaki Kasahara).
* src/dispnew.c (init_display): Always install handler for SIGWINCH.
(Reported by Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp>.)
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-186
Diffstat (limited to 'src')
| -rw-r--r-- | src/dispnew.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/dispnew.c b/src/dispnew.c index fb78aa9c275..8d64a954619 100644 --- a/src/dispnew.c +++ b/src/dispnew.c | |||
| @@ -6616,6 +6616,16 @@ init_display () | |||
| 6616 | during startup. */ | 6616 | during startup. */ |
| 6617 | Vinitial_window_system = Qnil; | 6617 | Vinitial_window_system = Qnil; |
| 6618 | 6618 | ||
| 6619 | /* SIGWINCH needs to be handled no matter what display we start | ||
| 6620 | with. Otherwise newly opened tty frames will not resize | ||
| 6621 | automatically. */ | ||
| 6622 | #ifdef SIGWINCH | ||
| 6623 | #ifndef CANNOT_DUMP | ||
| 6624 | if (initialized) | ||
| 6625 | #endif /* CANNOT_DUMP */ | ||
| 6626 | signal (SIGWINCH, window_change_signal); | ||
| 6627 | #endif /* SIGWINCH */ | ||
| 6628 | |||
| 6619 | /* If the user wants to use a window system, we shouldn't bother | 6629 | /* If the user wants to use a window system, we shouldn't bother |
| 6620 | initializing the terminal. This is especially important when the | 6630 | initializing the terminal. This is especially important when the |
| 6621 | terminal is so dumb that emacs gives up before and doesn't bother | 6631 | terminal is so dumb that emacs gives up before and doesn't bother |
| @@ -6766,13 +6776,6 @@ For types not defined in VMS, use define emacs_term \"TYPE\".\n\ | |||
| 6766 | adjust_frame_glyphs_initially (); | 6776 | adjust_frame_glyphs_initially (); |
| 6767 | calculate_costs (XFRAME (selected_frame)); | 6777 | calculate_costs (XFRAME (selected_frame)); |
| 6768 | 6778 | ||
| 6769 | #ifdef SIGWINCH | ||
| 6770 | #ifndef CANNOT_DUMP | ||
| 6771 | if (initialized) | ||
| 6772 | #endif /* CANNOT_DUMP */ | ||
| 6773 | signal (SIGWINCH, window_change_signal); | ||
| 6774 | #endif /* SIGWINCH */ | ||
| 6775 | |||
| 6776 | /* Set up faces of the initial terminal frame of a dumped Emacs. */ | 6779 | /* Set up faces of the initial terminal frame of a dumped Emacs. */ |
| 6777 | if (initialized | 6780 | if (initialized |
| 6778 | && !noninteractive | 6781 | && !noninteractive |