diff options
author | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2007-03-13 19:58:05 +0000 |
---|---|---|
committer | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2007-03-13 19:58:05 +0000 |
commit | 25a6bc31f431f59147739876f1d9a96340b65fb2 (patch) | |
tree | 818ca96f721cbc42da2ff9f8b18afde4c40fe830 /recordmydesktop/src/queryextensions.c | |
parent | ee0b215b94e92a1592a9f7c817c8dd0acefdce83 (diff) |
fixed xdamage with xshm and
removed anything related to conditional shared memory usage.
Added GetZPixmapShm.Cleaned up pdata stuct from unneeded members.
Removed argumednts related to conditional shared (--no-cond-shared,
--shared threshold).Changed default for Shm and --with-shared is now
--no-shared.
Also, dummy cursor has been shaped up a bit.
Version changed to 0.3.4-cvs.
git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@293 f606c939-3180-4ac9-a4b8-4b8779d57d0a
Diffstat (limited to 'recordmydesktop/src/queryextensions.c')
-rw-r--r-- | recordmydesktop/src/queryextensions.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/recordmydesktop/src/queryextensions.c b/recordmydesktop/src/queryextensions.c index 3c28a2a..8d6413c 100644 --- a/recordmydesktop/src/queryextensions.c +++ b/recordmydesktop/src/queryextensions.c @@ -30,22 +30,28 @@ void QueryExtensions(Display *dpy, ProgArgs *args, int *damage_event, - int *damage_error){ + int *damage_error, + int *shm_opcode){ int xf_event_basep, - xf_error_basep; + xf_error_basep, + shm_event_base, + shm_error_base; if(!XDamageQueryExtension( dpy, damage_event, damage_error)){ fprintf(stderr,"XDamage extension not found!!!\n"); exit(4); } - if((!args->noshared)&&(XShmQueryExtension(dpy)==False)){ + if((!args->noshared)&&(!XQueryExtension(dpy, + "MIT-SHM", + shm_opcode, + &shm_event_base, + &shm_error_base))){ args->noshared=1; fprintf(stderr,"Shared Memory extension not present!\n" - "Try again removing the --with-shared option" - "(if you used it)\nand add the" - " --no-cond-shared option.\n"); + "Try again using the --no-shared option\n"); exit(5); } + if((args->xfixes_cursor)&& (XFixesQueryExtension(dpy,&xf_event_basep,&xf_error_basep)==False)){ args->xfixes_cursor=0; |