mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-23 01:29:58 +00:00
input: allow NULL as XkbRMVLOSet in InitKeyboardDeviceStruct.
Virtually all callers use
XkbGetRulesDefault(&rmlvo);
InitKeyboardDeviceStruct(..., rmlvo);
Let's save them the trouble and accept NULL as a hint to take the
default RMLVO.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Acked-by: Benjamin Close <Benjamin.Close@clearchain.com>
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
parent
4e4e263bc0
commit
b406886bbf
6 changed files with 16 additions and 28 deletions
|
|
@ -121,7 +121,6 @@ xnestKeyboardProc(DeviceIntPtr pDev, int onoff)
|
|||
int i;
|
||||
XKeyboardState values;
|
||||
XkbDescPtr xkb;
|
||||
XkbRMLVOSet rmlvo;
|
||||
int op, event, error, major, minor;
|
||||
|
||||
switch (onoff)
|
||||
|
|
@ -165,13 +164,7 @@ xnestKeyboardProc(DeviceIntPtr pDev, int onoff)
|
|||
}
|
||||
XkbGetControls(xnestDisplay, XkbAllControlsMask, xkb);
|
||||
|
||||
rmlvo.rules = XKB_DFLT_RULES;
|
||||
rmlvo.model = XKB_DFLT_MODEL;
|
||||
rmlvo.layout = XKB_DFLT_LAYOUT;
|
||||
rmlvo.variant = XKB_DFLT_VARIANT;
|
||||
rmlvo.options = XKB_DFLT_OPTIONS;
|
||||
|
||||
InitKeyboardDeviceStruct(pDev, &rmlvo,
|
||||
InitKeyboardDeviceStruct(pDev, NULL,
|
||||
xnestBell, xnestChangeKeyboardControl);
|
||||
XkbDDXChangeControls(pDev, xkb->ctrls, xkb->ctrls);
|
||||
XkbFreeKeyboard(xkb, 0, False);
|
||||
|
|
|
|||
Loading…
Reference in a new issue