Bug 55772

Summary: PATCH to chbg, to make xscreensaver happier with it
Product: Ports & Packages Reporter: Zahemszky@, Gábor <gabor>
Component: Individual Port(s)Assignee: Alexander Leidinger <netchild>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Zahemszky@, Gábor 2003-08-20 10:41:44 UTC
	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.

Fix: apply this little patch:
===



Bye,
	Zahy < Gabor at Zahemszky dot HU >--8CuoGb8BAokfeUKFhfyW4sGkHhKMj00RXVwi3EKJiV6OtORZ
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

*** 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},
===
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.
Comment 1 Tilman Keskinoz freebsd_committer freebsd_triage 2003-08-20 19:13:34 UTC
Responsible Changed
From-To: freebsd-ports-bugs->dougb

over to maintainer
Comment 2 Alexander Leidinger freebsd_committer freebsd_triage 2003-09-03 22:15:23 UTC
Responsible Changed
From-To: dougb->netchild

Misfiled, the patch is for chbg, not for xscreensaver.
Comment 3 Alexander Leidinger freebsd_committer freebsd_triage 2003-09-03 22:29:33 UTC
State Changed
From-To: open->closed

Committed, thanks.