346ba2ee12
- Patch #313 - 2014/11/28 * add regisScreenSize resource setting to allow custom screensizes for ReGIS graphics (prompted by discussion with Scott Froebe). * fix some minor issues in manpage (Jens Schweikhardt). * improve ReGIS font-handling (Ross Combs): + remove "random junk" generation for unknown characters + add xterm extension to load user glyphs for alphabet 0 + add xterm extension to specify loading an alphabet from a font by name + fix bug with use of empty alphabet slots which caused slot 0 to be clobbered + update/clarify ReGIS-related comments + add DECprint extension for printing/clearing the screen (only clearing is performed) * improve ReGIS colorspec conversion (Ross Combs): + avoid some floating point math for colorspace conversion + move two copies of colorspec parsing to a single function + change colorspec parsing to handle components being out of order or with spaces and commas between them + add support for an extension where RGB components can be given instead of HLS * improve use of const, e.g., for the LineData pointers (patch by Ross Combs). * clip of graphics that overlap the scrollback buffer and alt screen (patch by Ross Combs). * amend change to focus-change events in patch #287 to limit it to suppressing the reset of the urgency-hint, because some useful FocusOut events were lost (report by Joe Peterson). * modify dpkg build-script to configure xterm-dev as an OBS-URL: https://build.opensuse.org/request/show/279963 OBS-URL: https://build.opensuse.org/package/show/X11:terminals/xterm?expand=0&rev=124
23 lines
721 B
Diff
23 lines
721 B
Diff
diff --git a/screen.c b/screen.c
|
|
--- a/screen.c
|
|
+++ b/screen.c
|
|
@@ -2246,17 +2246,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);
|
|
}
|