mirror of https://github.com/adamdruppe/arsd.git
fix non-linux X
This commit is contained in:
parent
edaf3d9c37
commit
3090b6ec02
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue