Commit 651e3448 authored by Jeremy White's avatar Jeremy White Committed by Frediano Ziglio
Browse files

Specify evdev as the default for Xkb.



Spice uses evdev codes, and this provides a better default on RHEL 7.3,
which defaults to the base rules.  Without evdev, the 'grey' extended
keys (e.g. up/down/home/end) do not function properly.
Acked-by: Frediano Ziglio's avatarFrediano Ziglio <fziglio@redhat.com>
parent ae644b34
...@@ -29,6 +29,9 @@ ...@@ -29,6 +29,9 @@
#include "picturestr.h" #include "picturestr.h"
/* Need to set xkb rules to evdev */
#include "xkbsrv.h"
/* /*
* Driver data structures. * Driver data structures.
*/ */
...@@ -327,6 +330,10 @@ DUMMYPreInit(ScrnInfoPtr pScrn, int flags) ...@@ -327,6 +330,10 @@ DUMMYPreInit(ScrnInfoPtr pScrn, int flags)
int maxClock = 300000; int maxClock = 300000;
GDevPtr device = xf86GetEntityInfo(pScrn->entityList[0])->device; GDevPtr device = xf86GetEntityInfo(pScrn->entityList[0])->device;
XkbRMLVOSet rmlvo = {
.rules = (char *) "evdev"
};
if (flags & PROBE_DETECT) { if (flags & PROBE_DETECT) {
return TRUE; return TRUE;
} }
...@@ -490,6 +497,9 @@ DUMMYPreInit(ScrnInfoPtr pScrn, int flags) ...@@ -490,6 +497,9 @@ DUMMYPreInit(ScrnInfoPtr pScrn, int flags)
pScrn->memPhysBase = 0; pScrn->memPhysBase = 0;
pScrn->fbOffset = 0; pScrn->fbOffset = 0;
/* We pass in evdev style inputs */
XkbSetRulesDflts(&rmlvo);
return TRUE; return TRUE;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment