From b5475f2362fbfdab84a6b5fcb6a8222fd3954b41 Mon Sep 17 00:00:00 2001 From: iovar Date: Fri, 3 Nov 2006 07:38:20 +0000 Subject: changed beryl __NET_WM_NAME check to strncmp, to cover older versions git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@141 f606c939-3180-4ac9-a4b8-4b8779d57d0a --- rMD-exp/src/recordmydesktop.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'rMD-exp') diff --git a/rMD-exp/src/recordmydesktop.c b/rMD-exp/src/recordmydesktop.c index 2550ee0..77c08ce 100644 --- a/rMD-exp/src/recordmydesktop.c +++ b/rMD-exp/src/recordmydesktop.c @@ -81,7 +81,8 @@ int main(int argc,char **argv){ } //Right now only wm's that I know of performing 3d compositing are beryl and compiz. //No, the blue screen in metacity doesn't count :) - else if(!strcmp(pdata.window_manager,"compiz") || !strcmp(pdata.window_manager,"beryl")){ + //names can be compiz for compiz and beryl/beryl-co/beryl-core for beryl(so it's strncmp ) + else if(!strcmp(pdata.window_manager,"compiz") || !strncmp(pdata.window_manager,"beryl",5)){ fprintf(stderr,"\nDetected 3d compositing window manager.\n" "Reverting to full screen capture at every frame.\n" "To disable this check run with --no-wm-check\n" -- cgit v1.2.1