From 586742b715a3e3451a4587439778c410a1970cdd Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Fri, 15 Feb 2019 09:37:18 +0100 Subject: Revert "nxagent: rework Bool handling" This reverts commit 16cd2bbe1c4425e3fa557f9ca0723aa94a50b071. It turned out that I had missed some of the Booleans being actually tristate variables. I think I can fix this (they do not need to be tristate) but I revert this for now to get back to a working state (there are reports about non-working fullscreen mode and reconnect problems). Refers to ArcticaProject/nx-libs#772 --- nx-X11/programs/Xserver/hw/nxagent/Render.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nx-X11/programs/Xserver/hw/nxagent/Render.c') diff --git a/nx-X11/programs/Xserver/hw/nxagent/Render.c b/nx-X11/programs/Xserver/hw/nxagent/Render.c index 84c81a3f8..9d91b1ff1 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Render.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Render.c @@ -569,11 +569,11 @@ int nxagentRenderRealizeCursor(ScreenPtr pScreen, CursorPtr pCursor) nxagentMarkCorruptedRegion(pPicture -> pDrawable, NULL); - nxagentLosslessTrap = True; + nxagentLosslessTrap = 1; nxagentSynchronizeDrawable(pPicture -> pDrawable, DO_WAIT, NEVER_BREAK, NULL); - nxagentLosslessTrap = False; + nxagentLosslessTrap = 0; cid = XRenderCreateCursor(nxagentDisplay, nxagentPicture(pPicture), x, y); @@ -2741,7 +2741,7 @@ void nxagentReconnectGlyphSet(void* p0, XID x1, void *p2) int i; - if (!nxagentReconnectTrap) + if (nxagentReconnectTrap == 0) { #ifdef DEBUG fprintf(stderr, "nxagentReconnectGlyphSet: GlyphSet at [%p].\n", (void *) pGly); -- cgit v1.2.3