Port-sparc64 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Volume control buttons



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

On May 16, 2008, at 06:41, Jared D. McNeill wrote:

Michael Lorenz wrote:
My WindowMaker menu is currently intercepting the audio keys like this:
SunAudioLowerVolume => mixerctl -nw monitor.master-=2
SunAudioRaiseVolume => mixerctl -nw monitor.master+=2
SunAudioMute        => mixerctl -nw monitor.master=0
... and that works only in WindowMaker. PMF events work everywhere.

The logic I would go with is:

  If X is active
    Deliver keycode
  Else
    Inject PMF event

How does the kernel know for sure if X is active? Console in WSDISPLAYIO_MODE_MAPPED works in many cases but not all.

have fun
Michael

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iQEVAwUBSC2JzspnzkX8Yg2nAQIuEgf/Z7G56dtEXjOZebB4VVChhsiJzANYW0oF
fQ9LEPRJYfJJrioG0lVsGQQkeMmkQWOs9OT4gO1ZZrYlg663C6AlZZpnYpS6wfmA
CzUcSl8DAuCNjha5bmzIBV0Fg9SIPFh/L3l86wm0NttteIi/J+q+CPvhxlKb/2Ig
YFWa8nWiI7MchQck8za5M9P9kKWRsXU4/oIALNnCxkablAb3X2m0+FM0aMG9xY/E
YnUk0iAax9LJhqIE2L+MbBx6q+i8xGF9fCV/Wx2e7Oltbs7pB2dMhh4lZjrm/WNY
gcMHebPvpVrFwW/ZmRkOhg1eKtrRqr5IrWDFC+HYIaw4fO+kCCgFCA==
=G5yh
-----END PGP SIGNATURE-----


Home | Main Index | Thread Index | Old Index