From 065846dab8ea620a9843fd17a96d783a87ec20f3 Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Sun, 24 Dec 2023 07:56:49 -0500 Subject: [PATCH] make event backup ui locks less likely --- simpledisplay.d | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/simpledisplay.d b/simpledisplay.d index 007673b..0215395 100644 --- a/simpledisplay.d +++ b/simpledisplay.d @@ -4414,6 +4414,10 @@ struct EventLoopImpl { if(PosixFdReader* pfr = fd in PosixFdReader.mapping) (*pfr).ready(flags); + // we don't know what the user did in this timer, so we need to assume that + // there's X data to be flushed and potentially processed + forceXPending = true; + // or i might add support for other FDs too // but for now it is just timer // (if you want other fds, use arsd.eventloop and compile with -version=with_eventloop), it offers a fuller api for arbitrary stuff.