summaryrefslogtreecommitdiff
path: root/xkb
AgeCommit message (Collapse)AuthorFilesLines
2008-04-01XKB: Fix processInputProc wrappingThomas Jaeger1-5/+4
If input processing is frozen, only wrap realInputProc: don't smash processInputProc as well. When input processing is thawed, pIP will be rewrapped correctly. This supersedes the previous workaround in 50e80c9. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2008-03-14XkbCopyKeymap: Fix broken indentationDaniel Stone1-4/+4
An astute observer will note that the entirety of XkbCopyKeymap is indented with spaces, and no tabs whatsoever, and not commit changes which break the otherwise consistent indentation. A non-astute observer will note the breakage when the commit mail comes through with clearly broken indentation. A polite, non-astute, observer will then fix it. C'est la vie.
2008-03-10XkbCopyKeymap was mangling doodads and overlaysKeith Packard1-2/+5
2008-03-05Fix distcheck.Adam Jackson1-1/+1
(cherry picked from commit 2a47accff8dccded4dfe031f9366c028ba927824)
2008-03-04XKB: Fix initial map setting on startupDaniel Stone2-6/+25
Due to an unwitting sense inversion when eliminating XkbFileInfo, we were setting the complete wrong keymap on startup (non-XKB map if we had an XKB map available, or the XKB map if we didn't have any available). Invert the sense properly, and add two small bits that also went missing in that commit.
2008-02-29dix: Modify callers of property and selection API to use new interfaces.Eamon Walsh1-2/+2
2008-02-27XACE: Require "manage" permission for XKBSetNames.Eamon Walsh1-1/+1
2008-02-22XKB: Actually use the keymap we compile at startupDaniel Stone1-42/+80
During XkbInitKeyboardDevice, we compiled a keymap and promptly threw it away; brief inspection revealed the embarassingly simple problem. Sorry.
2008-02-17XKB: Ditch XkbFileInfoDaniel Stone7-415/+160
Sorry about the megacommit, but this touches on a lot of stuff. Get rid of XkbFileInfo, which was pretty seriously redundant, and move the only useful thing it had (defined) into XkbDescRec. defined will be removed pretty soon anyway. Is the compat map pointer non-NULL? Then you have a compat map, congratulations! Anyhow, I digress. All functions that took an XkbFileInfoPtr now take an XkbDescPtr, _except_ XkmReadFile, which returns an XkbDescPtr *, because people want to deal in XkbDescPtrs, not XkbDescRecs.
2008-02-17XkbProcessOtherEvent: Don't depend on now-removed headerDaniel Stone1-1/+1
We don't do XKBsrv.h anymore.
2008-02-17XKB: Always set size correctly in XkbCopyKeymap's geometry routinesDaniel Stone1-5/+12
We were forgetting to set the sizes for sections and rows and a couple of other misc bits in XkbCopyKeymap's geometry. Sort that out, and add a couple of clarifying comments along the way.
2008-02-17XKB: Remove support for pre-built keymapsDaniel Stone4-121/+18
Don't load prebuilt keymaps anymore.
2008-02-17XKB: Remove usage of client-side typesDaniel Stone7-157/+113
Since we're no longer sharing with Xlib, don't pass Displays and XPointers everywhere.
2008-02-17XKB: Remove a bunch of mad ifdefsDaniel Stone16-252/+69
We have SEEK_SET and size_t, seriously. Also use DebugF instead of ifdef DEBUG, and ditch a couple of random bits that were never used.
2008-02-17XKB: Deprecate XKBSRV_NEED_FILE_FUNCSDaniel Stone1-480/+0
There's no point in having the function definitions be conditional, so whatever.
2008-02-17XKB: Move headers into the server treeDaniel Stone14-18/+1156
We need to start breaking the XKB API to enforce sanity, so drag whichever headers we need to do so into the server tree, as the client API is set in stone, being part of Xlib.
2008-02-17XKB: Delete xkberrs.cDaniel Stone2-38/+0
Get rid of the XKB errors code to save a bunch of space.
2008-02-13XACE: Change access modes for some device-related requests.Eamon Walsh1-7/+7
Opening a device is not really "reading" it. Requests that globally configure a device should require "manage" access.
2008-02-09xkb: when copying the keymap, make sure the structs default to 0/NULL.Peter Hutterer1-8/+15
It actually does help if a pointer is NULL rather than pointing to nirvana when you're trying to free it lateron. Who would have thought?
2008-02-05xkb: when copying sections, make sure num_rows is set too.Peter Hutterer1-0/+1
2008-01-30xkb: don't update LEDs if they don't exist. (Bug #13961)Peter Hutterer1-0/+3
In some weird cases we call this function when there is no SrvLedInfo on the device. And it turns out null-pointer dereferences are bad. X.Org Bug 13961 <http://bugs.freedesktop.org/show_bug.cgi?id=13961>
2008-01-17XKB: XkbCopyKeymap: Don't leak all the sectionsDaniel Stone1-0/+1
Previously, we'd just keep num_sections at 0, which would break the geometry and lead us to leak sections. Don't do that.
2007-12-13Merge branch 'master' into XACE-SELINUXEamon Walsh3-8/+30
Conflicts: Xext/EVI.c Xext/bigreq.c Xext/cup.c Xext/dpms.c Xext/fontcache.c Xext/mitmisc.c Xext/xcmisc.c Xext/xf86bigfont.c Xext/xtest.c configure.ac dbe/dbe.c hw/darwin/darwin.h hw/darwin/darwinEvents.c hw/darwin/iokit/xfIOKit.h hw/darwin/iokit/xfIOKitCursor.c hw/darwin/quartz/fullscreen/fullscreen.c hw/darwin/quartz/fullscreen/quartzCursor.c hw/darwin/quartz/quartz.c hw/darwin/quartz/quartzCommon.h hw/darwin/quartz/quartzCursor.c hw/darwin/quartz/xpr/dri.c hw/darwin/quartz/xpr/dristruct.h hw/darwin/quartz/xpr/xprCursor.c hw/darwin/quartz/xpr/xprFrame.c hw/xfree86/modes/xf86RandR12.c include/cursor.h miext/rootless/rootlessCommon.h miext/rootless/rootlessScreen.c miext/rootless/rootlessWindow.c render/picturestr.h Trying to pick up the pieces from the darwin churn here...
2007-12-05XKB: Actions: Don't run certain actions on the core keyboardDaniel Stone2-3/+20
Don't run VT switches, terminations, or anything, on the core keyboard: only run actions which affect the keyboard state. If we get an action such as VT switch, just swallow the event.
2007-11-23XKB: Generate correct key repeat events (bug #13114)Peter Hutterer1-5/+10
Make sure we send the correct event for the type of device when we're sending key repeat events, which stops repeats being sent to incorrect windows.
2007-11-20Revert "registry: Register XKB extension protocol names."Eamon Walsh1-59/+4
This reverts commit a5cf3f21f712e46dbf9bca289e67be75f2b531d3. Moving all the names into dix/registry.c
2007-11-19Merge branch 'master' into XACE-SELINUXEamon Walsh1-1/+2
Conflicts: hw/xnest/Pixmap.c include/dix.h
2007-11-17XKB: Don't ring the bell when we don't have a BellProc (bug #13246)Daniel Stone1-1/+2
2007-11-05Merge branch 'master' into XACE-SELINUXEamon Walsh6-141/+219
Conflicts: dix/dispatch.c dix/property.c hw/xfree86/common/xf86VidMode.c include/xkbsrv.h render/glyph.c xkb/xkbActions.c
2007-11-05XKB: Remove usage of allocaDaniel Stone2-14/+14
alloca has no way to return failure, and instead can possibly arbitrarily overflow the stack. Let's avoid that one.
2007-10-28XKB: Cope with all events in XkbProcessKeyboardEventDaniel Stone1-19/+38
Cope with Xi and pointer events in the (now increasingly misnamed) XkbProcessKeyboardEvent. If it's the wrong type, call through the wrapping chain to get out; else, process it.
2007-10-28XKB: Don't update indicators on all devices, add missing include fileDaniel Stone1-5/+5
Don't get XkbUpdateIndicators to update the indicators on all our devices: we already deal with that ourselves. Add exevents.h include to get more (proto)types.
2007-10-28xkb: Unwrap properly in ProcessPointerEvent.Peter Hutterer1-1/+22
Instead of hardcoding CoreProcessPointerEvent, actually try to unwrap properly and then call the unwrapped processInputProc. Seems to be a better idea, especially since it makes stuff actually work... (cherry picked from commit 8f9bf927e1beecf9b9ec8877131ec12c765e4d84)
2007-10-28xkb: xkbHandleActions: let wrapping take care of event delivery.Peter Hutterer1-17/+7
This is hopefully better than hardcodey calling CoreProcessPointerEvent. (cherry picked from commit 32d0440c7f6e604807cb14dd32349df6f22c903b)
2007-10-28xkb: enable XI event processing for xkb.Peter Hutterer3-43/+101
XI events can now take the same processing paths as core events, and should do the correct state changes etc. There's some cases where XKB will use KeyPress as type for an event to be delivered to the client. Stuck warnings in, not sure what the correct solution is yet. (cherry picked from commit 6334d4e7be18de5f237c12a6dc20f75aa23477d0 with some additional compile fixes and non-MPX adaptations)
2007-10-28Save processInputProc before wrapping it and restore it later, instead ofPeter Hutterer1-7/+10
using a hardcoded ProcessKeyboardEvent. Otherwise we lose the ability to process DeviceKeyEvents after the first key press. This should be the correct fix now. (cherry picked from commit 4d5df14f2c4a3108a8c8adfcf4766c0d1a9daad2)
2007-10-28xkb: Store the action filters per device in the XkbSrvInfoRec.Peter Hutterer1-49/+36
Using a global array for action filters is bad. If two keyboard hit a modifier at the same time, releaseing the first one will deactivate the filter and thus the second keyboard can never release the modifier again. (cherry picked from commit bfe6b4d2d9952a80f8dbc63eec974ef894e5c226)
2007-10-15registry: Register XKB extension protocol names.Eamon Walsh1-4/+59
2007-09-28xace: add hooks + new access codes: XKB extension.Eamon Walsh9-122/+156
Removes "LookupKeyboardDevice" and "LookupPointerDevice" in favor of inputInfo.keyboard and inputInfo.pointer, respectively; all use cases are non-XI compliant anyway.
2007-09-28xace: add new hooks + access controls: XInput extension.Eamon Walsh1-1/+1
Introduces new dix API to lookup a device, dixLookupDevice(), which replaces LookupDeviceIntRec and LookupDevice.
2007-08-28devPrivates rework: since API is already broken, switch everythingEamon Walsh2-12/+3
over to new system. Need to update documentation and address some remaining vestiges of old system such as CursorRec structure, fb "offman" structure, and FontRec privates.
2007-07-04Fix MEMORY SMASH in XkbCopyKeymap.Keith Packard1-3/+2
XkbCopyKeymap reallocates the destination keymap when it is not large enough to hold the source data. When reallocating the map->types data, it needs to zero out the new entries. The computation for where to start bzero'ing was accounting for the size of the data type twice, once implicitly in the pointer arithmetic, and once explicitly with '* sizeof (XkbKeyTypeRec)'. This would often lead to random memory corruption when the destination keymap had existing map->types data.
2007-06-29Death to RCS tags.Adam Jackson7-9/+0
2007-06-28Remove the remnants of OS/2 support.Adam Jackson2-24/+2
This has never worked in any modular server release, and as far as I know was never tested in 6.7 through 6.9.
2007-03-21XKB: Fix size_syms calculation bugDaniel Stone1-1/+1
Apparently it needed to be nSyms*15/10, not *12/10; make it match the other allocation code.
2007-03-21XKB: Be a tiny bit more conservative with type allocationDaniel Stone1-2/+5
Make sure size_types will _always_ be 0 if we don't have any types.
2007-03-20Static markup and dead code cull over xkb/.Adam Jackson35-1356/+225
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.
2007-02-05XkbCopyKeymap: fix copy-and-waste accidentDaniel Stone1-1/+1
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).
2006-12-24XkbCopyKeymap: make sure sym_interpret is always validDaniel Stone1-10/+13
Make sure we're not copying sym_interpret across from an empty source.
2006-12-08XkbCopyKeymap: always initialise map and preserveDaniel Stone1-2/+12
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.