From a7a9f35534dcb18a4e084a7a3bf60fb9efdc90ad Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Mon, 22 Apr 2024 22:58:18 +0200 Subject: Events.c: use existing functions for CriticalOutputPending --- nx-X11/programs/Xserver/hw/nxagent/Events.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'nx-X11/programs') diff --git a/nx-X11/programs/Xserver/hw/nxagent/Events.c b/nx-X11/programs/Xserver/hw/nxagent/Events.c index 634dadd36..9bd8dee16 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Events.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Events.c @@ -1184,7 +1184,7 @@ FIXME: Don't enqueue the KeyRelease event if the key was not already mieqEnqueue(&x); - CriticalOutputPending = 1; + SetCriticalOutputPending(); if (!nxagentOption(ViewOnly) && nxagentOption(Shadow)) { @@ -1278,7 +1278,7 @@ FIXME: Don't enqueue the KeyRelease event if the key was not already mieqEnqueue(&x); - CriticalOutputPending = 1; + SetCriticalOutputPending(); } if (!nxagentOption(ViewOnly) && nxagentOption(Shadow)) @@ -1352,7 +1352,7 @@ FIXME: Don't enqueue the KeyRelease event if the key was not already mieqEnqueue(&x); - CriticalOutputPending = 1; + SetCriticalOutputPending(); } if (!nxagentOption(ViewOnly) && nxagentOption(Shadow)) @@ -2224,10 +2224,7 @@ FIXME: Don't enqueue the KeyRelease event if the key was not already * Write the events to our clients. We may flush only in the case of * critical output but this doesn't seem beneficial. * - * if (CriticalOutputPending == 1) - * { - * FlushAllOutput(); - * } + * FlushIfCriticalOutputPending(); */ if (NewOutputPending == 1) @@ -2306,7 +2303,7 @@ int nxagentHandleKeyPress(XEvent *X, enum HandleEventResult *result) mieqEnqueue(&x); - CriticalOutputPending = 1; + SetCriticalOutputPending(); return 1; } -- cgit v1.2.3