diff options
author | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2007-11-30 23:29:19 +0000 |
---|---|---|
committer | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2007-11-30 23:29:19 +0000 |
commit | feee5500811ad81003e9324c60ade31ce6701e19 (patch) | |
tree | 9820315373321290ae8875641876113126d5585d /recordmydesktop/src/queryextensions.c | |
parent | c908820aaaf199ee4e7864ba48d337cc9141cea0 (diff) |
doc/recordmydesktop.1: added documentation for --no-frame
include/rmdfunc.h: added frame related function prototypes
include/rmdmacro.h: default(off) for --no-frame
include/rmdtypes.h: added --no-frame(noframe) in args
src/rmd_frame.c: create and move around the frame
src/Makefile.am: added rmd_frame.c
src/parseargs.c: parse --no-frame
src/queryextensions.c: check for XShape, too(implicit, non-fatal)
src/rmd_frame.c: init, move and draw funcs for the frame.
git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@445 f606c939-3180-4ac9-a4b8-4b8779d57d0a
Diffstat (limited to 'recordmydesktop/src/queryextensions.c')
-rw-r--r-- | recordmydesktop/src/queryextensions.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/recordmydesktop/src/queryextensions.c b/recordmydesktop/src/queryextensions.c index 6a380c5..4fc7783 100644 --- a/recordmydesktop/src/queryextensions.c +++ b/recordmydesktop/src/queryextensions.c @@ -26,6 +26,7 @@ #include <recordmydesktop.h> +#include <X11/extensions/shape.h> void QueryExtensions(Display *dpy, ProgArgs *args, @@ -35,7 +36,9 @@ void QueryExtensions(Display *dpy, int xf_event_basep, xf_error_basep, shm_event_base, - shm_error_base; + shm_error_base, + shape_event_base, + shape_error_base; if((!(args->full_shots))&&(!XDamageQueryExtension( dpy, damage_event, damage_error))){ fprintf(stderr,"XDamage extension not found!!!\n" @@ -54,7 +57,6 @@ void QueryExtensions(Display *dpy, "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; @@ -63,4 +65,12 @@ void QueryExtensions(Display *dpy, " --no-cursor option.\n"); exit(6); } + if((!args->noframe)&& + (!XShapeQueryExtension(dpy,&shape_event_base,&shape_error_base))){ + fprintf(stderr,"XShape Not Found!!!\n" + "Frame won't be available.\n"); + + args->noframe=1; + } + } |