SHA256
8
0
forked from pool/newt
Files
newt/newt-0.52.4-if1close.patch

27 lines
486 B
Diff

--- form.c
+++ form.c
@@ -890,6 +890,7 @@
struct eventResult er;
int key, i, max;
int done = 0;
+ int success;
fd_set readSet, writeSet, exceptSet;
struct timeval nextTimeout, now, timeout;
#ifdef USE_GPM
@@ -904,6 +905,7 @@
conn.maxMod = 0;
Gpm_Open(&conn, 0);
+ success = Gpm_Open(&conn, 0);
#endif
newtFormSetSize(co);
@@ -1063,6 +1065,7 @@
}
newtRefresh();
#ifdef USE_GPM
+ if (success > 0)
Gpm_Close();
#endif
}