We can now revert resized to a bool.

This commit is contained in:
William McBrine
2019-07-28 19:28:32 -04:00
parent c17e778160
commit 2f95683e60
4 changed files with 6 additions and 9 deletions

View File

@@ -28,7 +28,7 @@ Defined by this header:
**man-end****************************************************************/
#define PDCURSES 1 /* PDCurses-only routines */
#define PDC_BUILD 3804
#define PDC_BUILD 3805
#define PDC_VER_MAJOR 3
#define PDC_VER_MINOR 8
#define PDC_VERDOT "3.8"
@@ -314,7 +314,7 @@ typedef struct
bool raw_out; /* raw output mode (7 v. 8 bits) */
bool audible; /* FALSE if the bell is visual */
bool mono; /* TRUE if current screen is mono */
short resized; /* TRUE if TERM has been resized */
bool resized; /* TRUE if TERM has been resized */
bool orig_attr; /* TRUE if we have the original colors */
short orig_fore; /* original screen foreground color */
short orig_back; /* original screen foreground color */

View File

@@ -85,16 +85,13 @@ int XC_read_socket(int sock_num, void *buf, int len)
"resized: %d\n", XCLOGMSG, rc, errno, SP->resized);
#endif
if (rc < 0 && sock_num == xc_key_sock && errno == EINTR
&& SP->resized != FALSE)
&& SP->resized)
{
MOUSE_LOG(("%s:continuing\n", XCLOGMSG));
rc = 0;
if (SP->resized > 1)
SP->resized = TRUE;
else
SP->resized = FALSE;
SP->resized = FALSE;
memcpy(buf, &rc, sizeof(int));

View File

@@ -2660,7 +2660,7 @@ static void _handle_structure_notify(Widget w, XtPointer client_data,
after_first_curses_request = FALSE;
SP->resized = 1;
SP->resized = TRUE;
_send_key_to_curses(KEY_RESIZE, NULL, TRUE);
break;

View File

@@ -2342,7 +2342,7 @@ static void _handle_structure_notify(Widget w, XtPointer client_data,
resize_window_width = event->xconfigure.width;
resize_window_height = event->xconfigure.height;
SP->resized = 1;
SP->resized = TRUE;
xc_resize_now = TRUE;
break;