diff options
author | marha <marha@users.sourceforge.net> | 2014-11-29 12:40:08 +0100 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2014-11-29 12:40:08 +0100 |
commit | a1011d63ffb5cc4f41bf0f4622ee3f1493d419d9 (patch) | |
tree | 3875aa5d80808dfe3c52035a4148384d7090fb8a /xorg-server/xfixes | |
parent | d6d5581d5fba846c8476ad4d593da662306765d7 (diff) | |
download | vcxsrv-a1011d63ffb5cc4f41bf0f4622ee3f1493d419d9.tar.gz vcxsrv-a1011d63ffb5cc4f41bf0f4622ee3f1493d419d9.tar.bz2 vcxsrv-a1011d63ffb5cc4f41bf0f4622ee3f1493d419d9.zip |
fontconfig libX11 libxcb libxcb/xcb-proto mesa xserver xkbcomp xkeyboard-config git update 29 Nov 2014
xserver commit c52a2b1ebad56820af932dfbc871701a8b04fd9c
libxcb commit bbca7b82f803fa13fd30a2891ec06f2a213a28c2
libxcb/xcb-proto commit 691d2b97e5989d6d7006304d81bd8fa128477ca1
xkeyboard-config commit b664d7fb8aab9b0f834dd9c81d273c7809561b34
libX11 commit f3831dde6972e4da9e018c6a5f4013d8756a5e78
xkbcomp commit 1e8ee9d0aad072f04186df84752f5636340574e0
fontconfig commit b732bf057f4b3ec3bac539803005e9c42d056b2a
mesa commit 67c498086d0858a94d53ebb6921cfda847250368
Diffstat (limited to 'xorg-server/xfixes')
-rw-r--r-- | xorg-server/xfixes/cursor.c | 22 | ||||
-rw-r--r-- | xorg-server/xfixes/region.c | 13 |
2 files changed, 14 insertions, 21 deletions
diff --git a/xorg-server/xfixes/cursor.c b/xorg-server/xfixes/cursor.c index 31a408fac..94d24a8e2 100644 --- a/xorg-server/xfixes/cursor.c +++ b/xorg-server/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/xorg-server/xfixes/region.c b/xorg-server/xfixes/region.c index 4cfeee1a1..4492f1267 100644 --- a/xorg-server/xfixes/region.c +++ b/xorg-server/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)) |