aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2024-04-22 22:58:18 +0200
committerUlrich Sibiller <uli42@gmx.de>2024-05-11 18:53:27 +0200
commita7a9f35534dcb18a4e084a7a3bf60fb9efdc90ad (patch)
tree6cc33338f58b6d5d36e7b4e30eb348741569dbcd
parentb95fe005c7ab6aa09d287b85e2870507219bacce (diff)
downloadnx-libs-a7a9f35534dcb18a4e084a7a3bf60fb9efdc90ad.tar.gz
nx-libs-a7a9f35534dcb18a4e084a7a3bf60fb9efdc90ad.tar.bz2
nx-libs-a7a9f35534dcb18a4e084a7a3bf60fb9efdc90ad.zip
Events.c: use existing functions for CriticalOutputPending
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Events.c13
1 files changed, 5 insertions, 8 deletions
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;
}