Adam Jackson
283a081572
selinux: Only activate if policy says to be an object manager
2009-03-27 15:56:15 -04:00
Adam Jackson
8e7facfe30
config: Fall back to vesa for Intel Poulsbo.
2009-03-27 15:48:17 -04:00
Adam Jackson
17239c8e31
misprite: Remove private header, fold into misprite.c
2009-03-27 12:44:20 -04:00
Adam Jackson
bb89fc2771
misprite: Fix software cursor on multiple ScreenRecs
2009-03-27 12:36:42 -04:00
Adam Jackson
2c000f4980
misprite: Do window check first for Get{Image,Spans} too
2009-03-27 11:54:52 -04:00
Adam Jackson
8beced6c02
misprite: RECT_IN_REGION -> miRectIn
2009-03-27 11:43:33 -04:00
Adam Jackson
a232116b9e
misprite: Fix a typo
2009-03-27 11:41:40 -04:00
Adam Jackson
1f0eaf886d
misprite: Fix cast abuse
2009-03-27 11:29:40 -04:00
Peter Hutterer
e3c1096273
dix: build_modmap_from_modkeymap needs to bounds-check its argument.
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2009-03-27 11:26:15 +10:00
Peter Hutterer
45baef0b77
dix: return BadValue as error in SetModifierMapping.
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2009-03-27 11:26:15 +10:00
Peter Hutterer
603db34337
Xext: set POINTER_SCREEN flag in XTestFakeInput if necessary. (RH #490984 )
...
The POINTER_SCREEN flag must be set explicitly for XTest core events to avoid
out-of-range events when the lastSlave was an SD with an explicit axis range.
Device events sent through XTest don't need this flag, they are expected to be
in the valuator range of the device anyway.
Red Hat Bug 490984 <https://bugzilla.redhat.com/show_bug.cgi?id=490984 >
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-03-27 11:26:15 +10:00
Adam Jackson
4ab93f0566
misprite: In SourceValidate, check that it's a Window first
...
It almost never is. However, you have _lots_ of input devices now, and
walking them all on every Composite operation is not the cheapest thing
in the world.
2009-03-23 15:19:47 -04:00
Maarten Maathuis
d698e62690
xkb: plug a memory leak in XkbCopySrvLedInfo ( #20756 )
...
X.Org Bug 20756 <http://bugs.freedesktop.org/show_bug.cgi?id=20756 >
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-03-23 16:07:23 +10:00
Peter Hutterer
e26f79335b
xkb: put a few extra checks in against non-keyboards
2009-03-23 16:07:05 +10:00
Peter Hutterer
844bb629fe
dix: remove a truly useless a = (foo) ? bar : bar; statement.
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-03-23 16:06:53 +10:00
Tomas Carnecky
62183a06e5
Remove two unused defines in C files
...
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-23 16:06:34 +10:00
Tomas Carnecky
4e0d7cc506
FID, whatever that was, isn't anymore
...
No traces of FID in the xserver nor in the modules listed in
util/modular/xorg.modules
Signed-off-by: Tomas Carnecky <tom@dbservice.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-03-23 16:06:32 +10:00
Peter Hutterer
836864b657
xkb: don't overrun the map index when accessing symbols.
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-03-20 14:48:57 +10:00
Peter Hutterer
497a125339
dix: remove duplicate PickKeyboard() command.
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-03-20 14:48:57 +10:00
Peter Hutterer
7d4df0ee44
dix: fix device sync state when calling SyncBoth during AllowEvents.
...
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-20 14:48:57 +10:00
Peter Hutterer
f1c7b95d83
dix: do percentage check before device check in ProcBell
...
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-20 14:48:57 +10:00
Peter Hutterer
d60391d8ca
dix: fix uncredible fail in PostSyntheticMotion.
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-03-20 14:48:57 +10:00
Simon Thum
1a71862d33
dix/xfree86: simplified velocity approximation algorithm
...
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-20 14:48:57 +10:00
Peter Hutterer
5ae129baef
Xi: check for existence of the button class before accessing it
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-03-20 14:48:57 +10:00
Peter Hutterer
e8094d8f3f
dix: ProcSendEvent shouldn't use inputInfo.keyboard directly.
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-03-20 14:48:57 +10:00
Maarten Maathuis
12aeddf5ad
exa: Accept scratch pixmaps with offscreen memory as such.
2009-03-19 20:40:03 +01:00
Maarten Maathuis
a635bb5357
exa: round of fb_pitch to the next byte
2009-03-18 19:36:18 +01:00
Maarten Maathuis
ec32878359
exa: check if the pixmap is pinned for unsupported AUX indices.
2009-03-18 19:36:18 +01:00
Adam Jackson
3992dd38ca
selinux: Add support for avc_acquire_netlink_fd()
...
Requires libselinux 2.0.79 or newer. Without this, libselinux will
check for policy updates on the netlink socket on basically every policy
lookup. Statistically speaking, they never happen, and the check
translates to at least one more syscall on basically every operation.
Instead, take control of the fd from the library, and check it in
WakeupHandler if it polls readable.
2009-03-16 13:24:48 -04:00
Peter Hutterer
be6dc9023b
xfree86: remove a superfluous assignment.
...
If dev is NULL, we don't have a VCP and that means we have other issues
anyway.
2009-03-16 13:29:07 +10:00
Peter Hutterer
bfab422dcd
xfixes: useless (void) typecast removal
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-03-16 13:29:07 +10:00
Peter Hutterer
4eeaee1e5a
xkb: xkbi has a pointer to the device - use this instead of inputInfo.pointer.
2009-03-16 13:29:07 +10:00
Peter Hutterer
3f801ba62a
xkb: the VCP can post device events, don't stop xkb filtering on it.
2009-03-16 13:29:07 +10:00
Peter Hutterer
23686e5680
xkb: Fix a mis-use of inputInfo.keyboard.
2009-03-16 13:29:07 +10:00
Peter Hutterer
c97c6c3de3
xkb: fix a couple of device checks when looping through all devices.
...
Generally, we want to apply stuff to the device and to all attached slave
devices.
2009-03-16 13:29:07 +10:00
Peter Hutterer
d21a546e96
Xi: VCP and VCK may register for ext. events, so delete them if necessary.
2009-03-16 13:29:07 +10:00
Peter Hutterer
6ec49098f7
render: replace a wrong inputInfo.pointer with pDev
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-03-16 13:29:07 +10:00
Peter Hutterer
0b2b330f6f
mi: remove a bunch of useless inputInfo.pointer assignments.
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-03-16 13:29:07 +10:00
Peter Hutterer
31301861c1
dix: remove wrong InputInfo.pointer usage - should be pDev instead.
2009-03-16 13:29:07 +10:00
Peter Hutterer
639658b2ea
dix: use GetPairedDevice in ProcQueryPointer rather than inputInfo.keyboard.
2009-03-16 13:29:06 +10:00
Peter Hutterer
f01ee198ff
dix: don't use inputInfo.keyboard to get the focus window in ActivateKbdGrab
...
I'm not sure if that's the right solution, but the other one is wronger.
2009-03-16 13:29:06 +10:00
Peter Hutterer
de415743f4
dix: fix XACE checks in ProcWarpPointer
2009-03-16 13:29:06 +10:00
Peter Hutterer
18430616cf
dix: use PickPointer() and PickKeyboard instead of inputInfo.pointer/keyboard.
...
Affected calls:
ProcChangeKeyboardControl
ProcBell
ProcUngrabKey
ProcUngrabButton
2009-03-16 13:29:06 +10:00
Peter Hutterer
e31727158c
dix: fix ProcChangePointerControl's wrong inputInfo.pointer usage.
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-03-16 13:29:06 +10:00
Adam Jackson
fc5e8dc4a2
Unexport xf86SetPriority
2009-03-13 14:00:37 -04:00
Maarten Maathuis
89d7b88f32
exa: allow exaModifyPixmapHeader to set sys_ptr for EXA_HANDLES_PIXMAPS
...
- exaModifyPixmapHeader would save sys_ptr if needed, but it would be NULL'ed afterwards.
- This is needed to support pixmaps that are not offscreen.
2009-03-13 00:44:48 +01:00
Ander Conselvan de Oliveira
544cd9e7b5
Honour Option "DPMS" "off" on xorg.conf
...
Signed-off-by: James Cloos <cloos@jhcloos.com>
2009-03-12 14:50:59 -04:00
Simon Thum
7abb72c5c7
xfree86: remove obsolete code
...
remove a few lines which redo part of the pointer acceleration
init. Properties is the way to go for them.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-03-12 11:03:29 +10:00
Peter Hutterer
97cb3cc28e
dix: Merge DevicePresence notify events generation into a single function.
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-03-12 11:03:29 +10:00
Peter Hutterer
7f1ba804a1
dix: s/numEvents/num_events/ in GetKeyboardValuatorEvents
...
GPE and GProxE use the same.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-03-12 11:03:29 +10:00