mirror of https://github.com/adamdruppe/arsd.git
version fixes
This commit is contained in:
parent
3fc7ae165d
commit
eb02005e01
|
@ -2265,9 +2265,7 @@ struct EventLoopImpl {
|
||||||
void initialize(long pulseTimeout) {}
|
void initialize(long pulseTimeout) {}
|
||||||
else
|
else
|
||||||
void initialize(long pulseTimeout) {
|
void initialize(long pulseTimeout) {
|
||||||
version(X11) {
|
version(Windows) {
|
||||||
prepareEventLoop();
|
|
||||||
} else version(Windows) {
|
|
||||||
if(pulseTimeout)
|
if(pulseTimeout)
|
||||||
pulser = new Timer(cast(int) pulseTimeout, handlePulse);
|
pulser = new Timer(cast(int) pulseTimeout, handlePulse);
|
||||||
|
|
||||||
|
@ -2285,6 +2283,7 @@ struct EventLoopImpl {
|
||||||
}
|
}
|
||||||
|
|
||||||
version(linux) {
|
version(linux) {
|
||||||
|
prepareEventLoop();
|
||||||
{
|
{
|
||||||
auto display = XDisplayConnection.get;
|
auto display = XDisplayConnection.get;
|
||||||
// adding Xlib file
|
// adding Xlib file
|
||||||
|
@ -2358,6 +2357,7 @@ struct EventLoopImpl {
|
||||||
disposed = true;
|
disposed = true;
|
||||||
version(X11) {
|
version(X11) {
|
||||||
if(pulseFd != -1) {
|
if(pulseFd != -1) {
|
||||||
|
import unix = core.sys.posix.unistd;
|
||||||
unix.close(pulseFd);
|
unix.close(pulseFd);
|
||||||
pulseFd = -1;
|
pulseFd = -1;
|
||||||
}
|
}
|
||||||
|
@ -2686,9 +2686,11 @@ class NotificationAreaIcon : CapableOfHandlingNativeEvent {
|
||||||
|
|
||||||
/* private */ void hideBalloon() {
|
/* private */ void hideBalloon() {
|
||||||
balloon.close();
|
balloon.close();
|
||||||
timer.destroy();
|
version(with_timer)
|
||||||
|
timer.destroy();
|
||||||
balloon = null;
|
balloon = null;
|
||||||
timer = null;
|
version(with_timer)
|
||||||
|
timer = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
void redraw() {
|
void redraw() {
|
||||||
|
|
Loading…
Reference in New Issue