[PATCH] XF86keysym: Add XF86XK_RotationLockToggle

Hans de Goede hdegoede at redhat.com
Tue Jan 22 07:15:03 UTC 2019


Hi,

On 22-01-19 03:47, Jian-Hong Pan wrote:
> Peter Hutterer <peter.hutterer at who-t.net> 於 2019年1月22日 週二 上午9:03寫道:
>>
>> On Mon, Jan 21, 2019 at 08:23:08PM +0100, Hans de Goede wrote:
>>> Add XF86XK_RotationLockToggle keysym, to be used as mapping for evdev's
>>> KEY_ROTATE_LOCK_TOGGLE.
>>>
>>> I've a Point of View P1006W-232 Windows tablet which actually has a
>>> rotate-lock toggle-button. The latest kernel correctly generates
>>> KEY_ROTATE_LOCK_TOGGLE events for this. So now I'm hooking up support for
>>> it through all the higher layers.
>>>
>>> Signed-off-by: Hans de Goede <hdegoede at redhat.com>
>>
>> Reviewed-by: Peter Hutterer <peter.hutterer at who-t.net>
>>
> 
> Reviewed-by: Jian-Hong Pan <jian-hong at endlessm.com>

Peter, Jian-Hong,

Thank you for the reviews.

I've pushed this patch now.

Regards,

Hans



>>> ---
>>>   include/X11/XF86keysym.h | 2 ++
>>>   1 file changed, 2 insertions(+)
>>>
>>> diff --git a/include/X11/XF86keysym.h b/include/X11/XF86keysym.h
>>> index 9ad8948..dd287e2 100644
>>> --- a/include/X11/XF86keysym.h
>>> +++ b/include/X11/XF86keysym.h
>>> @@ -205,6 +205,8 @@
>>>
>>>   #define XF86XK_AudioPreset   0x1008FFB6   /* Select equalizer preset, e.g. theatre-mode */
>>>
>>> +#define XF86XK_RotationLockToggle 0x1008FFB7 /* Toggle screen rotation lock on/off */
>>> +
>>>   /* Keys for special action keys (hot keys) */
>>>   /* Virtual terminals on some operating systems */
>>>   #define XF86XK_Switch_VT_1   0x1008FE01
>>> --
>>> 2.20.1
>>>
>>> _______________________________________________
>>> xorg-devel at lists.x.org: X.Org development
>>> Archives: http://lists.x.org/archives/xorg-devel
>>> Info: https://lists.x.org/mailman/listinfo/xorg-devel


More information about the xorg-devel mailing list