Marcus Meissner
a398c6692d
- Patch #317 - 2015/03/27 - Patch #316 - 2015/03/07 - Patch #315 - 2015/03/02 - Patch #314 - 2014/12/28 OBS-URL: https://build.opensuse.org/request/show/293462 OBS-URL: https://build.opensuse.org/package/show/X11:terminals/xterm?expand=0&rev=127
23 lines
721 B
Diff
23 lines
721 B
Diff
diff --git a/screen.c b/screen.c
|
|
--- a/screen.c
|
|
+++ b/screen.c
|
|
@@ -2248,17 +2248,17 @@ ScreenResize(XtermWidget xw,
|
|
#ifdef USE_STRUCT_WINSIZE
|
|
ts.ws_xpixel = (ttySize_t) width;
|
|
ts.ws_ypixel = (ttySize_t) height;
|
|
#endif
|
|
code = SET_TTYSIZE(screen->respond, ts);
|
|
TRACE(("return %d from SET_TTYSIZE %dx%d\n", code, rows, cols));
|
|
(void) code;
|
|
|
|
-#if defined(SIGWINCH) && defined(TIOCGPGRP)
|
|
+#if defined(SIGWINCH) && (defined(TIOCGPGRP) || defined(linux))
|
|
if (screen->pid > 1) {
|
|
int pgrp;
|
|
|
|
TRACE(("getting process-group\n"));
|
|
if (ioctl(screen->respond, TIOCGPGRP, &pgrp) != -1) {
|
|
TRACE(("sending SIGWINCH to process group %d\n", pgrp));
|
|
kill_process_group(pgrp, SIGWINCH);
|
|
}
|