Age | Commit message (Collapse) | Author | Files | Lines |
|
Apparently it needed to be nSyms*15/10, not *12/10; make it match the
other allocation code.
|
|
Make sure size_types will _always_ be 0 if we don't have any types.
|
|
The former <X11/extensions/XKBsrv.h> has been pulled into the server now as
include/xkbsrv.h, and the world updated to look for it in the new place,
since it made no sense to define server API in an extension header. Any
further work along this line will need to do similar things with XKBgeom.h
and friends.
|
|
When we reallocated modmap, we accidentally clobbered syms with the
result, leaving syms definitely too small, and modmap also potentially too
small (as well as not actually allocated anymore).
|
|
Make sure we're not copying sym_interpret across from an empty source.
|
|
If we don't have map or preserve in the source map, make sure the
destination is initialised to NULL, and freed if it's a valid type.
|
|
|
|
Don't iterate invalid destination types (>= num_types) when coping key
types.
Don't free key_aliases if it's NULL (theoretical, but sure).
Make sure dst's label_font gets allocated if it's NULL.
(Thanks, Chris Lee.)
|
|
Fix uninitialised warning with memset(); we never actually use it
uninitialised, but gcc doesn't know that.
|
|
We now allow maps to be set (etc) on different keyboards, so stop putting
XkbXI_KeyboardsMask in unsupported.
|
|
Take various extra precautions with copying levels across (thanks Chris
Lee for a gdb session), including allocating when we don't already have a
coherent map.
Only free type components if they're present.
Allocate geometry and compat components if we don't already have them in
the dest map.
|
|
Remember to increment the source and destination shapes when copying,
instead of just endlessly copying the first one.
|
|
Compute virtual modmap size bounded by nVModMapKeys-1, rather than
nVModMapKeys.
This is sort of a best guess. The other way seems a little more
logical, but also leads to segfaults pretty quickly if you hammer
GetMap hard enough. So let's try this one.
|
|
Copy server->vmods, and all the atoms in names.
|
|
Forgot that all XKB requests took a device spec: the comparison of
'if working on the core keyboard, does this device send core events; or,
is this device the core keyboard?' was broken. Instead, what we want is
'if working on the core keyboard, does this device send core events; or,
is this device the one we're working on?'.
|
|
XKB.h specifies that XkbDfltXIId should be used where the client doesn't
care about the device identifier. We take this to mean core devices,
where practical.
|
|
Add a first cut at geometry support, which seems to generally work.
|
|
|
|
Add FIXME comments above request handlers which need to act on all core-sending
devices if called on the core keyboard.
|
|
|
|
|
|
|
|
Apply the settings to all devices sending core events, if we're working on the
core keyboard.
|
|
Update the keymaps of all keyboards which send core events on
GetKeyboardByName; still a few other procedures which need this treatment.
|
|
Certain versions of LynxOS needed to sleep up to five seconds for closing a
pipe to actually, y'know, be useful.
|
|
git+ssh://git.freedesktop.org/git/xorg/xserver into input-hotplug
|
|
Use XkbCharToInt as that's what we're doing.
|
|
git+ssh://git.freedesktop.org/git/xorg/xserver into input-hotplug
|
|
input-hotplug
|
|
|
|
|
|
Unconditionally free geometry when copying the keymap (so we have none on
core, oh well), add a couple of heartening comments.
|
|
Make sure we don't stomp preserve if it doesn't already exist, and fix a
couple of range-related thinkos in level name copying.
|
|
Fix a bunch of range issues caused by incorrect assumptions (e.g. that the
design was at least halfway sensible), and copy types by hand, instead of
just blindly memcpy()ing the lot, since it itself cleverly contains a ton
of allocated pointers.
|
|
We haven't copied {min,max}_key_code by the time the notifies run, so use
src instead of dst to determine number of keys, et al.
|
|
Optionally send a NewKeyboardNotify or MapNotify event when copying the
keymap; modify GetKeyboardValuatorEvents to make use of this.
|
|
Write a new function to copy an XKB map (does everything but geometry at
the moment), and use that instead of nasty pointer assignments.
|
|
Remove random behaviour changes for SGI and MetroLink.
|
|
|
|
|
|
Get rid of almost all uses of these definitions. They're still defined for
delinquent out-of-tree drivers, and also for the Mesa build. As well as
for miinitext.c. But largely gone.
|
|
xkb's strcasecmp implementation has been moved to the dix so it's now
safe to just use strcasecmp().
|
|
|
|
|
|
|
|
|
|
|
|
|
|
'register int n' in loops of ProcXkbGetNames.
|
|
|