xterm/xterm-sigwinch.patch
Marcus Meissner 89e400e6b2 Accepting request 183779 from home:pcerny:factory
- Patch #296 - 2013/07/10
  * improve experimental sixel feature (patch by Ross Combs).
  * modify delimiter in configure macro used to add a library
    after a given library to avoid confusion with -Wl
    pass-through options to linker (NetBSD #48031).
  * fix quoting in expression used to trim extra libraries from
    patch #295 changes (report by Thomas Klausner).
- Patch #295 - 2013/07/06
  * adjust order of libraries to work around incomplete symbol
    resolution when using --as-needed option (ArchLinux #36047).
  * minor fix for plink.sh, for IRIX64.
- Patch #294 - 2013/07/05
  * add note in ctlseqs.ms for CPR response pointing out a
    potential point of confusion with the string sent by a
    modified F1 key (suggested by Bram Moolenaar).
  * improve plink.sh by checking if the linker supports the
    --as-needed option (suggested by David Philippi).
  * improve clearing for private mode 1049 when switching to the
    alternate screen (Debian #711758).
  * amend fix from patch #292 by removing now-unneeded chunk
    which introduced problem in selection (Debian #714527).
  * add definition to optionally override compiled-in class for
    xterm from makefile, needed for test-packages.
  * add configure option --enable-sixel-graphics
  * add experimental support for sixel graphics (patch by Ross
    Combs).

OBS-URL: https://build.opensuse.org/request/show/183779
OBS-URL: https://build.opensuse.org/package/show/X11:terminals/xterm?expand=0&rev=80
2013-07-20 07:31:39 +00:00

23 lines
721 B
Diff

diff --git a/screen.c b/screen.c
--- a/screen.c
+++ b/screen.c
@@ -2211,17 +2211,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);
}