1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-03 04:22:47 -05:00

Minor improvements to subsidiary window placement; with any luck the

Event Log should go off the side of the screen rather less often now.

[originally from svn r3088]
This commit is contained in:
Simon Tatham
2003-04-10 08:53:43 +00:00
parent b49980b953
commit 406d2d8a32
5 changed files with 53 additions and 35 deletions

View File

@ -115,6 +115,13 @@ int first_fd(int *state, int *rwx)
int select_result(int fd, int event)
{
struct fd *fdstruct = find234(fds, &fd, uxsel_fd_findcmp);
assert(fdstruct != NULL);
return fdstruct->callback(fd, event);
/*
* Apparently this can sometimes be NULL. Can't see how, but I
* assume it means I need to ignore the event since it's on an
* fd I've stopped being interested in. Sigh.
*/
if (fdstruct)
return fdstruct->callback(fd, event);
else
return 1;
}