summaryrefslogtreecommitdiff
path: root/xserver/xfixes
diff options
context:
space:
mode:
Diffstat (limited to 'xserver/xfixes')
-rw-r--r--xserver/xfixes/Makefile.in1
-rw-r--r--xserver/xfixes/cursor.c22
-rw-r--r--xserver/xfixes/region.c27
3 files changed, 18 insertions, 32 deletions
diff --git a/xserver/xfixes/Makefile.in b/xserver/xfixes/Makefile.in
index 5c0b6a017..4a0afb71c 100644
--- a/xserver/xfixes/Makefile.in
+++ b/xserver/xfixes/Makefile.in
@@ -264,6 +264,7 @@ KDRIVE_CFLAGS = @KDRIVE_CFLAGS@
KDRIVE_INCS = @KDRIVE_INCS@
KDRIVE_LIBS = @KDRIVE_LIBS@
KDRIVE_LOCAL_LIBS = @KDRIVE_LOCAL_LIBS@
+KDRIVE_MAIN_LIB = @KDRIVE_MAIN_LIB@
KDRIVE_PURE_INCS = @KDRIVE_PURE_INCS@
KDRIVE_PURE_LIBS = @KDRIVE_PURE_LIBS@
KHRONOS_OPENGL_REGISTRY_CFLAGS = @KHRONOS_OPENGL_REGISTRY_CFLAGS@
diff --git a/xserver/xfixes/cursor.c b/xserver/xfixes/cursor.c
index 31a408fac..94d24a8e2 100644
--- a/xserver/xfixes/cursor.c
+++ b/xserver/xfixes/cursor.c
@@ -632,7 +632,7 @@ ReplaceCursor(CursorPtr pCursor, TestCursorFunc testCursor, void *closure)
int resIndex;
ReplaceCursorLookupRec rcl;
- /*
+ /*
* Cursors exist only in the resource database, windows and grabs.
* All of these are always pointed at by the resource database. Walk
* the whole thing looking for cursors
@@ -735,7 +735,7 @@ SProcXFixesChangeCursorByName(ClientPtr client)
/*
* Routines for manipulating the per-screen hide counts list.
- * This list indicates which clients have requested cursor hiding
+ * This list indicates which clients have requested cursor hiding
* for that screen.
*/
@@ -772,7 +772,7 @@ createCursorHideCount(ClientPtr pClient, ScreenPtr pScreen)
pChc->pNext = cs->pCursorHideCounts;
cs->pCursorHideCounts = pChc;
- /*
+ /*
* Create a resource for this element so it can be deleted
* when the client goes away.
*/
@@ -784,7 +784,7 @@ createCursorHideCount(ClientPtr pClient, ScreenPtr pScreen)
return Success;
}
-/*
+/*
* Delete the given hide-counts list element from its screen list.
*/
static void
@@ -812,7 +812,7 @@ deleteCursorHideCount(CursorHideCountPtr pChcToDel, ScreenPtr pScreen)
}
}
-/*
+/*
* Delete all the hide-counts list elements for this screen.
*/
static void
@@ -848,9 +848,9 @@ ProcXFixesHideCursor(ClientPtr client)
return ret;
}
- /*
- * Has client hidden the cursor before on this screen?
- * If so, just increment the count.
+ /*
+ * Has client hidden the cursor before on this screen?
+ * If so, just increment the count.
*/
pChc = findCursorHideCount(client, pWin->drawable.pScreen);
@@ -859,8 +859,8 @@ ProcXFixesHideCursor(ClientPtr client)
return Success;
}
- /*
- * This is the first time this client has hid the cursor
+ /*
+ * This is the first time this client has hid the cursor
* for this screen.
*/
ret = XaceHook(XACE_SCREEN_ACCESS, client, pWin->drawable.pScreen,
@@ -912,7 +912,7 @@ ProcXFixesShowCursor(ClientPtr client)
return rc;
}
- /*
+ /*
* Has client hidden the cursor on this screen?
* If not, generate an error.
*/
diff --git a/xserver/xfixes/region.c b/xserver/xfixes/region.c
index f9de52542..4492f1267 100644
--- a/xserver/xfixes/region.c
+++ b/xserver/xfixes/region.c
@@ -222,20 +222,13 @@ ProcXFixesCreateRegionFromGC(ClientPtr client)
if (rc != Success)
return rc;
- switch (pGC->clientClipType) {
- case CT_PIXMAP:
- pRegion = BitmapToRegion(pGC->pScreen, (PixmapPtr) pGC->clientClip);
- if (!pRegion)
- return BadAlloc;
- break;
- case CT_REGION:
+ if (pGC->clientClip) {
pClip = (RegionPtr) pGC->clientClip;
pRegion = XFixesRegionCopy(pClip);
if (!pRegion)
return BadAlloc;
- break;
- default:
- return BadImplementation; /* assume sane server bits */
+ } else {
+ return BadMatch;
}
if (!AddResource(stuff->region, RegionResType, (void *) pRegion))
@@ -272,20 +265,12 @@ ProcXFixesCreateRegionFromPicture(ClientPtr client)
if (!pPicture->pDrawable)
return RenderErrBase + BadPicture;
- switch (pPicture->clientClipType) {
- case CT_PIXMAP:
- pRegion = BitmapToRegion(pPicture->pDrawable->pScreen,
- (PixmapPtr) pPicture->clientClip);
- if (!pRegion)
- return BadAlloc;
- break;
- case CT_REGION:
+ if (pPicture->clientClip) {
pRegion = XFixesRegionCopy((RegionPtr) pPicture->clientClip);
if (!pRegion)
return BadAlloc;
- break;
- default:
- return BadImplementation; /* assume sane server bits */
+ } else {
+ return BadMatch;
}
if (!AddResource(stuff->region, RegionResType, (void *) pRegion))