diff --git a/curses.h b/curses.h index c348b00b..6584d5d3 100644 --- a/curses.h +++ b/curses.h @@ -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 */ diff --git a/x11/pdcx11.c b/x11/pdcx11.c index bfe5d922..1f8933b9 100644 --- a/x11/pdcx11.c +++ b/x11/pdcx11.c @@ -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)); diff --git a/x11/x11.c b/x11/x11.c index 30bd5ac8..84acf0ed 100644 --- a/x11/x11.c +++ b/x11/x11.c @@ -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; diff --git a/x11new/x11.c b/x11new/x11.c index a4157b75..34a5c54d 100644 --- a/x11new/x11.c +++ b/x11new/x11.c @@ -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;