X-Git-Url: http://git.hcoop.net/bpt/emacs.git/blobdiff_plain/9d9f18127ffc1bc26358a5d48917ef4e4bafbddc..16c290d8c16fb0fdb574c837c6b1badbc655efe2:/src/keyboard.c diff --git a/src/keyboard.c b/src/keyboard.c index 1bb9564060..c9124f0f59 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -10127,7 +10127,7 @@ On such systems, Emacs starts a subshell instead of suspending. */) call1 (Vrun_hooks, intern ("suspend-hook")); GCPRO1 (stuffstring); - get_tty_size (CURTTY (), &old_width, &old_height); + get_tty_size (fileno (TTY_INPUT (CURTTY ())), &old_width, &old_height); reset_all_sys_modes (); /* sys_suspend can get an error if it tries to fork a subshell and the system resources aren't available for that. */ @@ -10143,7 +10143,7 @@ On such systems, Emacs starts a subshell instead of suspending. */) /* Check if terminal/window size has changed. Note that this is not useful when we are running directly with a window system; but suspend should be disabled in that case. */ - get_tty_size (CURTTY (), &width, &height); + get_tty_size (fileno (TTY_INPUT (CURTTY ())), &width, &height); if (width != old_width || height != old_height) change_frame_size (SELECTED_FRAME (), height, width, 0, 0, 0);