aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent/GCOps.c
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2020-12-30 23:58:40 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-01-15 16:26:31 +0100
commit714a212fd357a9ed855e2fd50b4f8e85336fcad6 (patch)
treeaca7f553a48c7aa960176510b478b2b29e379f58 /nx-X11/programs/Xserver/hw/nxagent/GCOps.c
parent1239dffeccc4f4c1fccfee8802562837c50bd193 (diff)
downloadnx-libs-714a212fd357a9ed855e2fd50b4f8e85336fcad6.tar.gz
nx-libs-714a212fd357a9ed855e2fd50b4f8e85336fcad6.tar.bz2
nx-libs-714a212fd357a9ed855e2fd50b4f8e85336fcad6.zip
GCOps.c: make internal function Boolean
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/GCOps.c')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/GCOps.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/GCOps.c b/nx-X11/programs/Xserver/hw/nxagent/GCOps.c
index 277daa699..eda87ff20 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/GCOps.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/GCOps.c
@@ -211,18 +211,18 @@ RegionPtr nxagentBitBlitHelper(GC *pGC)
* redirect property.
*/
-int nxagentWindowIsPopup(DrawablePtr pDrawable)
+Bool nxagentWindowIsPopup(DrawablePtr pDrawable)
{
if (pDrawable -> type != DRAWABLE_WINDOW)
{
return 0;
}
- int windowIsPopup = 0;
+ Bool windowIsPopup = False;
if (((WindowPtr) pDrawable) -> overrideRedirect == 1)
{
- windowIsPopup = 1;
+ windowIsPopup = True;
}
else
{
@@ -244,7 +244,7 @@ int nxagentWindowIsPopup(DrawablePtr pDrawable)
if (parent -> overrideRedirect == 1)
{
- windowIsPopup = 1;
+ windowIsPopup = True;
break;
}
@@ -254,7 +254,7 @@ int nxagentWindowIsPopup(DrawablePtr pDrawable)
#ifdef TEST
fprintf(stderr, "nxagentWindowIsPopup: Window [%p] %s to be a popup.\n", (void *) pDrawable,
- windowIsPopup == 1 ? "seems" : "does not seem");
+ windowIsPopup ? "seems" : "does not seem");
#endif
return windowIsPopup;
@@ -285,7 +285,7 @@ FIXME: The popup could be synchronized with one single put image,
if (nxagentOption(DeferLevel) >= 2 &&
pSrcDrawable -> type == DRAWABLE_PIXMAP &&
nxagentPixmapContainTrapezoids((PixmapPtr) pSrcDrawable) == 1 &&
- nxagentWindowIsPopup(pDstDrawable) == 1)
+ nxagentWindowIsPopup(pDstDrawable))
{
RegionPtr pSrcRegion = nxagentCreateRegion(pSrcDrawable, NULL, srcx, srcy, width, height);