diff options
author | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2006-09-15 18:03:41 +0000 |
---|---|---|
committer | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2006-09-15 18:03:41 +0000 |
commit | be180f9385ffb3459525db309fe009b6f76906ad (patch) | |
tree | c76877aaa41f1c74b544aef521b58bcc3ba11e2a /recordmydesktop/src/queryextensions.c | |
parent | a4f375344a05129f9ea5833ea7da30ac0522aed4 (diff) |
v0.2.5, xfixes cursor
git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@47 f606c939-3180-4ac9-a4b8-4b8779d57d0a
Diffstat (limited to 'recordmydesktop/src/queryextensions.c')
-rw-r--r-- | recordmydesktop/src/queryextensions.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/recordmydesktop/src/queryextensions.c b/recordmydesktop/src/queryextensions.c index 056e534..0ccac84 100644 --- a/recordmydesktop/src/queryextensions.c +++ b/recordmydesktop/src/queryextensions.c @@ -28,6 +28,9 @@ #include <recordmydesktop.h> int QueryExtensions(Display *dpy,ProgArgs *args,int *damage_event,int *damage_error){ + int xf_event_basep, + xf_error_basep; + if(!XDamageQueryExtension( dpy, damage_event, damage_error)){ fprintf(stderr,"XDamage extension not found!!!\n"); return 1; @@ -36,5 +39,21 @@ int QueryExtensions(Display *dpy,ProgArgs *args,int *damage_event,int *damage_er args->noshared=1; fprintf(stderr,"Shared Memory extension not present!\nContinuing without it.\n"); } + if((args->xfixes_cursor)&&(XFixesQueryExtension(dpy,&xf_event_basep,&xf_error_basep)==False)){ + args->xfixes_cursor=0; + fprintf(stderr,"Xfixes extension not present!\nContinuing without it.\n"); + } +// XFixesCursorImage *xcim; +// xcim=XFixesGetCursorImage (dpy); +// fprintf(stderr,"XFIXES:\n\n%d %d\n\n\n%d %d\n\n",xcim->width,xcim->height,xcim->xhot,xcim->yhot); +// int i=0,k=0; +// unsigned char *cp=((unsigned char *)xcim->pixels); +// for(i=0;i<xcim->height;i++){ +// for(k=0;k<xcim->width*4;k+=4){ +// fprintf(stderr,"%d",cp[i*xcim->width*4+k]); +// } +// fprintf(stderr,"\n"); +// } + return 0; } |