X11 vncviewer bell volume
Charles Hines
chuck_hines "at" VNET.IBM.COM
Tue, 22 Sep 1998 19:23:28 +0000
Howdy all.
I have my X11 server bell turned down because I think it's way too loud,
but the X11 based vncviewer code always rings it louder than it should be.
That's because of the way it calls the XBell() function. The volume of the
generated beep is relative to the current base volume setting based on the
passed in percent value (-100% to 100%, inclusive). So, to make it ring at
the same volume that I have set my X11 sever to requires the percent to be
0, not 100. This small patch to the X11 vncviewer code fixes that:
======================================================================
--- vncviewer/listen.c.orig Thu Jan 15 13:20:46 1998
+++ vncviewer/listen.c Tue Sep 22 14:05:09 1998
@@ -162,7 +162,7 @@
Window w1, w2, w3, w4;
XSetWindowAttributes attr;
- XBell(d, 100);
+ XBell(d, 0);
XForceScreenSaver(d, ScreenSaverReset);
--- vncviewer/rfbproto.c.orig Wed May 6 08:31:15 1998
+++ vncviewer/rfbproto.c Tue Sep 22 14:05:18 1998
@@ -791,7 +791,7 @@
}
case rfbBell:
- XBell(dpy,100);
+ XBell(dpy,0);
break;
case rfbServerCutText:
======================================================================
Chuck
--
*******************************************************************************
Charles K. Hines <chuck_hines "at" vnet.ibm.com>
IBM Logic Synthesis Developer [BooleDozer (TM)]
Martial Arts Instructor [Modern Arnis and Balintawak Escrima]
"Go back to sleep, Chuck. You're just havin' a nightmare
-- of course, we ARE still in Hell." (Gary Larson)
*******************************************************************************
---------------------------------------------------------------------
The VNC mailing list - see http://www.orl.co.uk/vnc/intouch.html
---------------------------------------------------------------------