Multimedia keys not handled when numlock or caplock is on
Bug #665146 reported by
Etienne Monette
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Xfce4 Volumed |
Fix Released
|
Low
|
Steve Dodier-Lazaro |
Bug Description
The daemon will not process multimedia keys when the state of the Keypress event is different from 0x0. Volume up or down is ignored by the deamon if numlock is on (state is 0x10) or if caplock is on (state is 0x2) or even if shift is on (state is 0x1).
Changed in xfce4-volumed: | |
assignee: | nobody → Steve Dodier (sidi) |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in xfce4-volumed: | |
status: | Confirmed → In Progress |
To post a comment you must log in.
I solved the problem.
The idea is to perform xcb_grab_ key_checked for more than mod = 0x0. You need to perform the call 4 times, with mod equal to:
0x00 (no modifiers)
0x02 (Cap Lock)
0x10 (Num Lock)
0x12 (Cap Lock and Num Lock)
Modified the code from lp:~xubuntu-dev/xfce4-volumed/lucid branch, recompiled... Works like a charm.