From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Aug 20 02:42:18 2003 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EF8FB16A4C0 for ; Wed, 20 Aug 2003 02:42:17 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4915D4402F for ; Wed, 20 Aug 2003 02:41:50 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h7K9fmUp090733 for ; Wed, 20 Aug 2003 02:41:48 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h7K9fmV1090731; Wed, 20 Aug 2003 02:41:48 -0700 (PDT) Resent-Date: Wed, 20 Aug 2003 02:41:48 -0700 (PDT) Resent-Message-Id: <200308200941.h7K9fmV1090731@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Zahemszky Gábor Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3C90716A4BF for ; Tue, 19 Aug 2003 14:15:34 -0700 (PDT) Received: from digpala.axelero.hu (fe02.axelero.hu [195.228.240.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5491E43F85 for ; Tue, 19 Aug 2003 14:15:32 -0700 (PDT) (envelope-from gabor@zahemszky.hu) Received: from localhost (localhost-02 [127.0.2.1]) by digpala.axelero.hu (8.12.9/8.12.9) with SMTP id h7JLFURL031309 for ; Tue, 19 Aug 2003 23:15:30 +0200 (CEST) Received: from fe02.axelero.hu [127.0.2.1] via SMTP gateway by digpala [195.228.240.90]; id A07A45B910E at Tue Aug 19 23:15:30 2003 Received: from Picasso.Zahemszky.HU (151.39-182-adsl-pool.axelero.hu [81.182.39.151]) by fe02.axelero.hu (8.12.9/8.12.9) with ESMTP id h7JLFTa1031275 for ; Tue, 19 Aug 2003 23:15:30 +0200 (CEST) Received: from Picasso.Zahemszky.HU (localhost.Zahemszky.HU [127.0.0.1]) by Picasso.Zahemszky.HU (8.12.9/8.12.9) with ESMTP id h7JLFVYp033662 for ; Tue, 19 Aug 2003 23:15:31 +0200 (CEST) (envelope-from zgabor@Picasso.Zahemszky.HU) Received: (from zgabor@localhost) by Picasso.Zahemszky.HU (8.12.9/8.12.9/Submit) id h7JLFUbo033661; Tue, 19 Aug 2003 23:15:30 +0200 (CEST) Message-Id: <200308192115.h7JLFUbo033661@Picasso.Zahemszky.HU> Date: Tue, 19 Aug 2003 23:15:30 +0200 (CEST) From: Zahemszky Gábor To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/55772: PATCH to chbg, to make xscreensaver happier with it X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Zahemszky Gábor List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Aug 2003 09:42:18 -0000 >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: