summaryrefslogtreecommitdiff
path: root/dix
AgeCommit message (Collapse)AuthorFilesLines
2009-04-07dix: Dont change the keyboard mapping on non-keyboard devices.Peter Hutterer1-0/+2
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-04-03DPMS: Remove the defaultDPMS* variablesAdam Jackson2-8/+4
2009-04-03DPMS: Simplify command line parsingAdam Jackson1-2/+1
2009-04-03DPMS: Align the default timeouts with the default screensaver timeout.Adam Jackson1-3/+3
On a typical LCD, a black screensaver is actually worse for power consumption than a normal screen, because it takes more energy to turn the crystals opaque. Also, the intermediate DPMS states are essentially useless and most monitors alias them to the 'off' state, so we may as well do the same. As a pleasant side effect, this brings the default DPMS timeouts in line with the EnergyStar Program Requirements for Computers: http://www.energystar.gov/index.cfm?c=revisions.computer_spec which state that products must be "shipped with the display's Sleep mode set to activate within 15 minutes of user inactivity".
2009-04-03DPMS: Simplify some macro silliness.Adam Jackson1-17/+5
2009-03-31dix: Simplify InitClient()Adam Jackson1-22/+1
2009-03-27dix: build_modmap_from_modkeymap needs to bounds-check its argument.Peter Hutterer1-0/+3
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2009-03-27dix: return BadValue as error in SetModifierMapping.Peter Hutterer1-1/+1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2009-03-23dix: remove a truly useless a = (foo) ? bar : bar; statement.Peter Hutterer1-1/+1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-03-23Remove two unused defines in C filesTomas Carnecky1-3/+0
These two defines were defined in C files but not used anywhere: dix/window.c #define DeviceEventMasks (KeyPressMask | [...] os/connection.c #define MAXFD 500 Signed-off-by: Tomas Carnecky <tom@dbservice.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-03-20dix: remove duplicate PickKeyboard() command.Peter Hutterer1-1/+0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-03-20dix: fix device sync state when calling SyncBoth during AllowEvents.Peter Hutterer1-4/+4
This did access the wrong device's sync state, potentially freezing or not thawing the actual device that was supposed to be thawed. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-03-20dix: do percentage check before device check in ProcBellPeter Hutterer1-5/+5
This is just for correctness. The server should return BadValue for anything not in [-100, 100]. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-03-20dix: fix uncredible fail in PostSyntheticMotion.Peter Hutterer1-1/+2
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-03-20dix/xfree86: simplified velocity approximation algorithmSimon Thum1-296/+197
Replace multi-stage filtering with simple linear velocity, tracked several instances backwards. A heuristic ensures only approximately linear motion is considered, so velocity remains valid in any case. Numerical stability is much better, and nothing changes to people who didn't tune the advanced features of the previous algorithm. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-03-20dix: ProcSendEvent shouldn't use inputInfo.keyboard directly.Peter Hutterer1-2/+4
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-03-16dix: remove wrong InputInfo.pointer usage - should be pDev instead.Peter Hutterer1-1/+1
2009-03-16dix: use GetPairedDevice in ProcQueryPointer rather than inputInfo.keyboard.Peter Hutterer1-1/+4
2009-03-16dix: don't use inputInfo.keyboard to get the focus window in ActivateKbdGrabPeter Hutterer1-1/+1
I'm not sure if that's the right solution, but the other one is wronger.
2009-03-16dix: fix XACE checks in ProcWarpPointerPeter Hutterer1-5/+5
2009-03-16dix: use PickPointer() and PickKeyboard instead of inputInfo.pointer/keyboard.Peter Hutterer2-10/+19
Affected calls: ProcChangeKeyboardControl ProcBell ProcUngrabKey ProcUngrabButton
2009-03-16dix: fix ProcChangePointerControl's wrong inputInfo.pointer usage.Peter Hutterer1-10/+10
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-03-12dix: Merge DevicePresence notify events generation into a single function.Peter Hutterer1-40/+20
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-03-12dix: s/numEvents/num_events/ in GetKeyboardValuatorEventsPeter Hutterer1-4/+4
GPE and GProxE use the same. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-03-12dix: remove a few pointless (void) casts of return values.Peter Hutterer1-5/+5
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-03-09Replace dixLookupResource by dixLookupResourceBy{Type,Class}Keith Packard8-56/+102
dixLookupResource attempted to automatically detect whether the caller wanted a lookup by-type or by-class, unfortunately, it guessed wrong for RT_NONE. Instead of trying to make the guess better, this patch just reverts the unification and creates separate functions for each operation.
2009-03-03Fix build with --enable-debug.Jason Vas Dias1-2/+2
[amended by Peter Hutterer] Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-03-03dix: fix two compiler warnings (old-style function definition).Peter Hutterer1-2/+2
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-02-25dix: set the valuator mode in set_valuatorsPeter Hutterer1-2/+4
We only have per-device mode for now anyway. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-02-25dix: remove unused variable 'tmp'Peter Hutterer1-1/+0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-02-25dix: remove ConvertBackToXI.Peter Hutterer1-23/+0
This was a temporary solution for the internal-events rework and is not needed anymore. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-02-25Doxygenify events.h and eventconvert.cPeter Hutterer1-14/+20
Should have done that before pushing, but oh well. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-02-24dix: fix wrong condition for setting valuators on the event.Peter Hutterer1-1/+1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-02-23dix: don't apply button mappings to SDs, or the device's MD. (#20122)Peter Hutterer1-18/+0
Only ever change the button map on the device we actually care about, not the attached SDs, not the current MD of the device. X.Org Bug 20122 <http://bugs.freedesktop.org/show_bug.cgi?id=20122> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Daniel Stone <daniel@fooishbar.org>
2009-02-23dix: remove un-used getValuatorEvents and countValuatorEvents from getevents.cPeter Hutterer1-56/+0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-02-23Input: change processing API to InternalEvents.Peter Hutterer1-2/+2
Don't pass xEvent* and count through to processing, pass a single InternalEvent. Custom handlers are disabled for the time being. And for extra fun, XKB's pointer motion emulation is disabled. But stick an error in there so that we get reminded should we forget about it. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-02-23dix: Fix PostSyntheticMotion to use a DeviceEvent for posting.Peter Hutterer1-7/+8
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-02-23dix: CheckPassiveGrabsOnWindow moved to internal events.Peter Hutterer1-7/+28
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-02-23dix: switch DeliverGrabbedEvent to internal events.Peter Hutterer1-8/+21
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-02-23dix: switch DeliverDeviceEvents to internal events.Peter Hutterer1-24/+47
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-02-23dix: switch DeliverFocusedEvent to internal events.Peter Hutterer1-23/+36
And because of xfree() macro hilarity, rename "pointer" to "ptr". Oh, how we laughed. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-02-23dix: Switch DeliverGrabbedEvents to use internal events.Peter Hutterer1-39/+41
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-02-23dix: Deliver{Grabbed|Focused|Device}Events API changed to InternalEvents.Peter Hutterer1-44/+50
With the API change, we can now purge the XI conversion from POE. Note: this commit breaks DGA even more. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-02-23dix: convert passive grabs to use internal events.Peter Hutterer1-64/+65
deviceGrab.sync.event is now an internal event, and CheckDeviceGrabs and friends is changed over. Note that this currently breaks some frozen grabs. See towards the end of ComputeFreezes(). Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-02-23dix: fix EnqueueEvent to work with internal events.Peter Hutterer1-64/+62
Note that we're only partially switched to internal events. The event in the devices' event queue (dev->deviceGrab.sync.event) is still an XI event. The events in syncEvents are InternalEvents only now. This also implies fixing CheckVirtualMotion to work with internal events. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-02-23Xi: make ProcessOtherEvents more InternalEvent aware.Peter Hutterer1-12/+15
Get rid of the deviceValuator processing and a few other things, but still drop back into XI before checking device grabs or doing anything else. NoticeEventTime now needs to take InternalEvents, and while we're at it, change NoticeTime from a macro to a function. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-02-23dix: update CheckMotion to deal with DeviceEvents.Peter Hutterer1-27/+16
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-02-23Xi: support InternalEvents in UpdateDeviceState, parts of POE and EnqueueEventPeter Hutterer2-9/+15
Note that this breaks DGA. Life is tough. EnqueueEvent is a somewhat half-baked solution, we immediately drop back into XI and store them. But it should in theory work. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Don't let the dcce be random data.
2009-02-23xkb: Switch the xkb event processing path over to InternalEvents.Peter Hutterer1-8/+6
Before dropping down into the DIX, convert back into XI events. This is a temporary solution only, until the DIX is capable of handling InternalEvents anyway. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-02-23dix: change eventconvert to always return an array of xEventsPeter Hutterer1-38/+28
Just alloc the memory on demand rather than doing things with EventListPtrs etc. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>