Odd XBell(3) inconsistancy

Peter Hutterer peter.hutterer at who-t.net
Sun Sep 8 17:40:00 PDT 2013


On Thu, Sep 05, 2013 at 09:09:57PM -0400, Mouse wrote:
> > I guess the other clients must call XBell() with percent=0?
> 
> Probably.  The way the percent argument (which is only sort-of a
> percentage; it runs from -100 to 100) is interpreted makes it
> reasonably clear to me that the intent is that 0 be some sort of
> nominal user-set volume, with programs able to use -100 to 0 to mean
> "softer than the user-set volume" and 0 to 100 as "louder than the
> user-set volume".  

pretty much. from the man-page:
"The XBell function rings the bell on the keyboard on the specified
display, if possible. The specified volume is relative to the base volume
for the keyboard."

Cheers,
   Peter


> Calling it with other than 0, except as specifically
> configured, amounts to the program deciding it knows better than the
> user how loud the bell should be; I would consider such a program
> antisocial, at least to the extent it purports to be general-purpose.
> I'm pleased to see that most app authors seem to agree (with the
> conclusion, if perhaps not the reasoning).
> 
> Of course, on some hardware there are only two volume levels actually
> possible, one of which is completely inaudible, so there are also
> portability reasons to not depend on nonzero values of the argument
> doing anything meaningful (possibly excepting -100 and 100, to which
> the above remarks apply).
> 
> /~\ The ASCII				  Mouse
> \ / Ribbon Campaign
>  X  Against HTML		mouse at rodents-montreal.org
> / \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel
> 


More information about the xorg-devel mailing list