fix non-linux X

This commit is contained in:
Adam D. Ruppe 2017-10-05 18:39:05 -04:00
parent edaf3d9c37
commit 3090b6ec02
1 changed files with 52 additions and 51 deletions

View File

@ -2334,6 +2334,7 @@ struct EventLoopImpl {
throw new Exception("can't create eventfd for custom event processing");
}
}
}
SimpleWindow.processAllCustomEvents(); // process events added before event FD creation
@ -2342,7 +2343,6 @@ struct EventLoopImpl {
scope(exit) this.mtUnlock();
XPending(display); // no, really
}
}
disposed = false;
}
@ -2362,6 +2362,7 @@ struct EventLoopImpl {
pulseFd = -1;
}
version(linux)
if(displayFd != -1) {
// clean up xlib fd when we exit, in case we come back later e.g. X disconnect and reconnect with new FD, don't want to still keep the old one around
ep.epoll_event ev = void;