Date: Tue, 19 Aug 2003 23:15:30 +0200 (CEST) From: Zahemszky Gábor <Gabor@zahemszky.hu> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/55772: PATCH to chbg, to make xscreensaver happier with it Message-ID: <200308192115.h7JLFUbo033661@Picasso.Zahemszky.HU> Resent-Message-ID: <200308200941.h7K9fmV1090731@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 55772 >Category: ports >Synopsis: PATCH to chbg, to make xscreensaver happier with it >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Aug 20 02:41:44 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Zahemszky Gábor >Release: FreeBSD 4.8-STABLE i386 >Organization: >Environment: System: FreeBSD Picasso.Zahemszky.HU 4.8-STABLE FreeBSD 4.8-STABLE #0: Wed Aug 13 22:26:37 CEST 2003 root@Picasso.Zahemszky.HU:/usr/obj/usr/src/sys/PICASSO i386 >Description: In the xscreensaver FAQ, and in the chbg src, there is some text, about using chbg to use it as a screen-saver (with xscreensaver). But in the configuration mode of xscreensaver (eg. xscreensaver-demo), it runs the external program with a ``-window-id XXX'' parameter, to show the screen saver in a little window. chbg has such an option, but named it: -windowid. So this patch make a trivial modification: both the original (and documented) -windowid, and the new (and undocumented) -window-id option works. >How-To-Repeat: Use chbg as a screensaver modul in xscreensaver, as written in the FAQ. In an xterm window, start xscreensaver-demo, and try chbg. There will be an error message from chbg, about the -window-id option in the xterm, and an error message in the xscreensaver window. With my little patch, there will be no error messages, and we will see the demo of chbg. >Fix: apply this little patch: === *** src/options.h.orig Tue Aug 19 22:51:46 2003 --- src/options.h Tue Aug 19 22:46:51 2003 *************** option_t chbg_opts[] = { *** 118,123 **** --- 118,124 ---- {CHBG_OPT_PATTERN, "-pattern", "Pattern:", 1}, {CHBG_OPT_INWINDOW, "-inwindow", "InWindow:", 0}, {CHBG_OPT_WINDOWID, "-windowid", NULL, 1}, + {CHBG_OPT_WINDOWID, "-window-id", NULL, 1}, {CHBG_OPT_RUN, "-run", NULL, 0}, {CHBG_OPT_MIN_PSIZE, "-min_psize", "MinPictureSize:", 1}, {CHBG_OPT_DEFFECTS, "-deffects", "DisabledEffects:", 1}, === Bye, Zahy < Gabor at Zahemszky dot HU > >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200308192115.h7JLFUbo033661>