From bd1bed049548bb8b5d8f14097f44e1768bfabbdc Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Fri, 10 Feb 2017 23:21:44 -0500 Subject: [PATCH] ketmar bug fix --- simpledisplay.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simpledisplay.d b/simpledisplay.d index 2547c05..e2825d5 100644 --- a/simpledisplay.d +++ b/simpledisplay.d @@ -1448,8 +1448,8 @@ public: ++eventQueueUsed; } version(X11) { - // if this is first event in queue, wake up eventfd - if (eventQueueUsed == 1) { + // wake up eventfd + { import core.sys.posix.unistd : write; ulong n = 1; write(customEventFD, &n, n.sizeof);