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
Peter Hutterer
067f26f7ba
Xi: set the modifier + group state during POE.
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-03-12 11:03:29 +10:00
Peter Hutterer
da724e8f1d
Xi: Set the button state on the event during POE.
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-03-12 11:03:29 +10:00
Peter Hutterer
b368dd1720
dix: remove a few pointless (void) casts of return values.
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-03-12 11:03:29 +10:00
Matthias Hopf
cadf65a6e1
randr: Nuke broken set_origin shortcut
...
Shortcut is impossible to implement this way, because we don't know for sure
whether the crtc of an output has changed or not.
2009-03-10 15:49:49 +01:00
Eamon Walsh
6544490700
Correct access mode in call to dixLookupWindow() within RRSelectInput.
...
Reported by Alan Coopersmith.
2009-03-09 17:29:24 -04:00
Keith Packard
f8dd80d13b
Replace dixLookupResource by dixLookupResourceBy{Type,Class}
...
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-09 13:08:09 -07:00
Peter Hutterer
0d9a42dc03
Xi: don't crash on a NULL property name, just return None.
...
strcmp doesn't like NULL-pointers.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-03-09 14:01:54 +10:00
Peter Hutterer
432a95032e
Remove useless (void) typecasts.
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-03-09 14:01:54 +10:00
Peter Åstrand
f508446a2b
Composite: Uninitialized borderClipX/borderClipY
...
Valgrind warned me about two other uninitialized variables, which are not
padding. Valgrind output at the end. I'm a bit unsure of what these should
be initialized to, is zero fine?
2009-03-06 19:43:10 -08:00
Winfried Grünewald
d1338a9480
[hw/xfree86] Fix StaticGray cmap.
...
Fix this bug report:
,----< from http://bugzilla.freedesktop.org/show_bug.cgi?id=20504 >
| Using the Visual StaticGray (8 bit depth) is missing one gray level.
| The gray level of index zero and index one are the same and all
| other levels are shifted by one. The max level (255) cannot be used.
`----
Signed-off-by: James Cloos <cloos@jhcloos.com>
2009-03-06 12:59:35 -05:00
Alan Coopersmith
eba3bab71f
Remove #ifdef macII code left over from ancient A/UX 3.0 support
...
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-03-05 15:09:28 -08:00
Jeremy Huddleston
daa9727a02
XQuartz: Implement SendPSN for AppleWM
...
(cherry picked from commit 779e9fdc2d
)
2009-03-04 13:39:43 -08:00
Maarten Maathuis
ce6e1771be
exa: fix a serious issue in exaChangeWindowAttributes (and some more related things)
...
- fbChangeWindowAttributes can create pixmaps (and access them) without use preparing access.
- Also handle the destroyed pixmaps by finishing them first.
- Switch to DEST indices again in exaCreatePixmapWithPrepare, because they are obviously being rendered to.
- Also avoid calling FinishAccess on pixmaps that are destroyed (and their memory potentially invalid).
2009-03-04 16:51:10 +01:00
Maarten Maathuis
7fb68e8b31
exa: remove a few pExaPixmap checks.
...
- And make some fatal for a debug build.
2009-03-04 16:51:10 +01:00
Maarten Maathuis
bd2f35ef0d
exa: fix unwrapping of ModifyPixmapHeader upon CloseScreen.
...
- Cleanup wrapping too.
2009-03-04 16:51:10 +01:00
Maarten Maathuis
da8ea41a54
exa: increase/rework safety checks in Prepare/FinishAccess.
2009-03-04 16:51:09 +01:00
Maarten Maathuis
3ea3d505e8
exa: avoid a potential Prepare/FinishAccess inbalance.
2009-03-04 16:51:09 +01:00
Maarten Maathuis
10334cf7e6
exa: simplify exaPixmapIsOffscreen
...
- This includes properly handling the framebuffer.
2009-03-04 16:51:09 +01:00
Tomas Carnecky
57bed76e21
Remove dead EXTENSION_PROC_ARGS define
...
Signed-off-by: Tomas Carnecky <tom@dbservice.com>
2009-03-04 10:29:34 -05:00
Tomas Carnecky
a6fb9f4ccf
Remove dead XTest code from extmod
...
Signed-off-by: Tomas Carnecky <tom@dbservice.com>
2009-03-04 10:27:30 -05:00
Topi Kanerva
c4081fee09
Make DGA optional.
2009-03-04 10:23:10 -05:00
Eamon Walsh
c7ebb4bef1
Fix 2 const warnings.
2009-03-03 14:02:36 -05:00
Eric Paris
c7cf926d25
This patch changes all places in the X code to use _raw functions. The
...
X server should never see, translate, or deal with a munged context.
Display managers which show contexts to the user should take care of
translating these to human readable form.
2009-03-03 13:15:39 -05:00
Peter Hutterer
d84a2f855d
xfree86: Add linebreak to two debug statements.
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-03-03 16:53:11 +10:00
Jason Vas Dias
e0ed9f16d0
Fix build with --enable-debug.
...
[amended by Peter Hutterer]
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-03-03 16:53:06 +10:00
Peter Hutterer
6093d3eb1d
dix: fix two compiler warnings (old-style function definition).
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-03-03 07:07:30 +10:00