Peter Hutterer
502689847b
Xi: ALLOC_COPY_CLASS_IF should only alloc if to->field doesn't exist.
2008-04-04 15:01:53 +10:30
Peter Hutterer
035b1b6995
Xi: remove duplicate copying of kbdfeed and ptrfeed.
2008-04-04 15:00:06 +10:30
Peter Hutterer
52fc7aed18
Xi: only alloc memory for feedback classes if it doesn't already exist.
2008-04-04 14:47:23 +10:30
Peter Hutterer
4eb87c8693
Xi: don't free device classes before copying them.
...
First commit in a series to come.
2008-04-04 14:20:37 +10:30
Peter Hutterer
8e562fe26f
Xi: remove false memset from DeepCopyDeviceClasses.
...
It's wrong, needs to be different, but I haven't had enough coffee to figure
out what it needs to do yet.
2008-03-05 15:11:41 +10:30
Peter Hutterer
7b4f3616f7
Xi: add deviceid to QueryDevicePointer request.
...
Why not, we had the padding anyway.
Suggested by Jim Gettys on the X.Org mailing list.
2008-03-04 18:29:15 +10:30
Peter Hutterer
4f2cd0ed96
Merge branch 'master' into mpx
...
This merge reverts Magnus' device coorindate scaling changes. MPX core event
generation is very different, so we can't scale in GetPointerEvents.
Conflicts:
Xi/opendev.c
dix/devices.c
dix/dixfonts.c
dix/getevents.c
dix/resource.c
dix/window.c
hw/xfree86/common/xf86Xinput.c
mi/mipointer.c
xkb/ddxBeep.c
xkb/ddxCtrls.c
xkb/ddxKeyClick.c
xkb/ddxList.c
xkb/ddxLoad.c
xkb/xkb.c
xkb/xkbAccessX.c
xkb/xkbEvents.c
xkb/xkbInit.c
xkb/xkbPrKeyEv.c
xkb/xkbUtils.c
2008-03-04 18:11:10 +10:30
Peter Hutterer
453661a9e1
Xi: swap the control attached to a ChangeDeviceControl request. Bug #14170
...
Just swapping the request's data isn't enough, we need to swap the actual
control as well.
X.Org Bug 14170 <http://bugs.freedesktop.org/show_bug.cgi?id=14170 >
2008-02-28 15:47:26 +10:30
Tiago Vignatti
aebd9dc252
Oops, there's one more parenthesis.
2008-02-28 01:22:31 -03:00
Eamon Walsh
f616735f17
xselinux: Prefix a few remaining error messages with "SELinux".
2008-02-27 22:48:29 -05:00
Eamon Walsh
e40cc5305b
xselinux: Don't throw BadAccess if DixUnknownAccess is passed in to a hook.
...
The avc will still appear, however, so that the callsite can be fixed.
2008-02-27 22:48:28 -05:00
Eamon Walsh
3b1df47bd4
XACE: Require "manage" permission for XKBSetNames.
2008-02-27 22:48:28 -05:00
Dave Airlie
08afc70513
quirks: another LPL panel with the cm/mm wrong
2008-02-28 10:45:41 +10:00
Maarten Maathuis
f6d51797a5
EXA: Let the driver decide what repeat/extend types are supported.
2008-02-27 23:44:39 +01:00
Alan Hourihane
41aea6194b
More checking for failed contexts/drawables
2008-02-27 17:06:27 +00:00
Alan Hourihane
43e46a654f
Fix context sharing between direct/indirect contexts
2008-02-27 16:58:21 +00:00
Dodji Seketeli
d74b0327e8
[Xephyr/GL] unbreak the build
...
Don't touch Xephyr DRI stuff when not compiling in a DRI environment.
2008-02-27 09:48:53 +01:00
Peter Hutterer
2257e20900
dix: set dev->key to NULL after freeing it in CloseDevice. (Bug #12830 )
...
Otherwise XkbRemoveResourceClient may try to dereference it lateron.
X.Org Bug 12830 <http://bugs.freedesktop.org/show_bug.cgi?id=12830 >
2008-02-27 17:32:29 +10:30
Eamon Walsh
3f0681fb0b
xselinux: Stub out selection protocol requests.
2008-02-26 23:14:29 -05:00
Eamon Walsh
4632ea2258
xselinux: Rip out the selection code in advance of polyinstantiation support.
...
This resolves an issue where BadWindow errors were being thrown.
2008-02-26 22:00:52 -05:00
Eamon Walsh
c8e979b3b8
security: Register resource names in the server-side name registry.
2008-02-26 21:36:46 -05:00
Dave Airlie
d12b7b6632
xf86Crtc: add higher level modesetting entry point.
...
For kernel modesetting work we need a bigger stick to beat the modesetting path
2008-02-27 07:09:14 +10:00
Michel Dänzer
dcc077c753
AIGLX: Switch to server context for calling DamageDamageRegion().
...
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=14518 .
2008-02-26 12:20:04 +01:00
Peter Hutterer
23ae68a4c7
dix: before copying the classes the first time, set the VCK's classes to NULL.
...
XkbFinishDeviceInit does the following:
xkbi->kbdProc= pXDev->kbdfeed->CtrlProc;
pXDev->kbdfeed->CtrlProc= XkbDDXKeybdCtrlProc;
If we directly copy the device classes for the VCK, pXDev->kbdfeed->CtrlProc
at the time of copying is still XbkDDXKeybdCtrlProc. So at some point
XkbDDXKeybdCtrlProc is called, and calls itself, and calls itself, and...
Setting the device's classes to NULL seems to fix things. The memory isn't
lost, it gets stored into the devPrivates and freed at device closing time.
2008-02-26 15:35:28 +10:30
Peter Hutterer
ce9fb2f8c4
Xi: MDs return the paired device's ID in attached field of ListInputDevices.
2008-02-26 13:51:19 +10:30
Tiago Vignatti
c46f7b62d2
Fine, we don't need pciInit() anymore. Nuke, nuke, nuke...
2008-02-25 18:14:08 -03:00
Tiago Vignatti
a9050d5424
Jesus, pciInit() was called 32 times in my machine without need!
...
xf86scanpci() will always call pciInit() before any other function, so
there's no need to guarantee it after.
2008-02-25 18:10:18 -03:00
Tiago Vignatti
81272f7ec9
Some doc clean up:
...
clean up legacy things in os-support/bus/Pci.c.
Put InitOutput() comment to its right place.
2008-02-25 17:39:33 -03:00
Tiago Vignatti
7c582dd6de
remove lnxPciInit() unused function.
2008-02-25 17:31:37 -03:00
Tiago Vignatti
9727db88d5
No more "-scanpci" given that we already have it in libpciaccess.
...
(Yeah, lets nuke dead code!)
2008-02-25 17:08:07 -03:00
Tiago Vignatti
f19f7b8e53
Clean some garbage caused when pciaccess was merged:
...
FindPCIVideoInfo() function isn't need anymore.
xf86scanpci() is being called only once so we don't need permanent
(static) variables there.
restorePciState() is not used for now (until we find why multiple
cards aren't working).
2008-02-25 17:07:07 -03:00
Peter Hutterer
d61f481a44
Xi: remove GetPairedPointer handling.
...
obsolete, ListInputDevices provides this information now.
2008-02-25 17:52:45 +10:30
Peter Hutterer
27b2127893
Xi: remove ungrab handling of ExtendedUngrabDevice request.
...
This can be done by UngrabDevice, no need for separate codepaths.
2008-02-25 17:00:42 +10:30
Adam Jackson
4b50e71bf1
Bug #13736 : Fix %bx in VBEGetPixelClock to match spec.
...
Reported by Yannick Henault.
2008-02-24 20:25:13 -05:00
Jeremy Huddleston
6dc369028d
XQuartz: Quit now properly warns the user
...
(cherry picked from commit ed3d7b3959
)
2008-02-23 00:28:41 -08:00
Adam Jackson
e6a4cde16d
Use the client-side XKB headers for the config utilities
2008-02-22 18:36:29 -05:00
Adam Jackson
347db49ebe
s/via/openchrome/ in the autoconfig logic.
...
Xorg's via driver is effectively dead anyway.
2008-02-22 16:05:33 -05:00
Adam Jackson
69f7826767
Match Xephyr DRI definitions to the ones in xf86dri.h
2008-02-22 16:04:35 -05:00
Adam Jackson
060a66b6e2
Normalize swapped dispatch for Fixes{ChangeSaveSet,SelectSelectionInput}
2008-02-22 15:25:26 -05:00
Adam Jackson
24bebdded4
fbFillRegionTiled() is now dead code.
...
Only ever called from the old PaintWindow* screen hooks, but those are
gone now. As a pleasant side effect, fb loses its #ifdef PANORAMIX.
2008-02-22 15:22:38 -05:00
Adam Jackson
ee21aba6be
Fix Xinerama's consolidated visual handling.
...
Formerly the code claimed it could only handle up to 256 visuals, which
was true. Also true, but not explicitly stated, was that it could only
handle visuals with VID < 256. If you have enough screens, and subsystems
that add lots of visuals, you can easily run off the end. (Made worse
because we allocate visual IDs from the same pool as XIDs.) If your app
then chooses a visual > 256, then the Xinerama code would throw BadMatch
on CreateColormap and your app wouldn't start.
With this change, PanoramiXVisualTable is gone. Other subsystems that
were using it as a translation table between each screen's visuals now
use a PanoramiXTranslateVisual() helper.
2008-02-22 15:19:54 -05:00
Daniel Stone
a4202b898f
XKB: Actually use the keymap we compile at startup
...
During XkbInitKeyboardDevice, we compiled a keymap and promptly threw it away;
brief inspection revealed the embarassingly simple problem. Sorry.
2008-02-22 18:28:06 +01:00
Dodji Seketeli
c14fd2a5cb
[Xephyr/GL] properly route expose event on GL drawables
...
When an expose event happens on an host GL window paired with an
internal drawable, route that expose event to the clients listening
to the expose event on the internal drawable.
2008-02-21 15:33:02 +01:00
Dodji Seketeli
437c78ef9f
[Xephyr/GL] don't crash when the host returns a NULL server string
2008-02-21 15:29:27 +01:00
Eamon Walsh
f343265a28
XACE: Make the default window background state configurable per-window.
...
To recap: the original XC-SECURITY extension disallowed background "None" if
the window was untrusted. XACE 1.0 preserved this check as a hook function.
XACE pre-2.0 removed the hook and first abolished background "None entirely,
then restored it as a global on/off switch in response to Bug #13683 .
Now it's back to being per-window, via a flag instead of a hook function.
2008-02-20 15:59:40 -05:00
Eamon Walsh
7c2f0a8bef
Remove COMPOSITE ifdefs around WindowRec bitfield as it has no ABI effect.
2008-02-20 15:59:39 -05:00
Eric Anholt
5cb9e15562
EXA: Fix Render acceleration in copy and tiling cases.
...
Code shuffling in a634c9b034
broke this by
leaving pSrcPixmap = NULL.
2008-02-20 10:36:06 -08:00
Peter Hutterer
f14a62f823
dix: set evlen to the size of the reallocated memory.
...
What a good idea this is... I'm very proud of myself.
2008-02-19 21:44:10 +10:30
Peter Hutterer
67a78e84a8
Revert "xfree86: plug a memory leak in xf86LoadModules."
...
This reverts commit 3abce3ea2b
and
6cbaf15e61
.
The memory returned to xf86LoadModule was allocated in doLoadModule, which
calls the respective module's PreInit. As it turns out, input and output
drivers store a pointer to the module elswhere, so freeing it in
xf86LoadModule is a bad idea.
For further reference: hw/xfree86/common/xf86Helper.c
Input drivers: xf86InputDriverList[blah]->module = module;
Output drivers: xf86DriverList[blah]->module = module;
Unloading the module would not look pretty then.
2008-02-19 21:31:50 +10:30
Jeremy Huddleston
5f5ec5db35
XQuartz: unsetenv("DISPLAY") before startx if X11.app can't connect to it.
...
Also fix casting to silence warning.
(cherry picked from commit a5cbf78471
)
2008-02-19 00:01:42 -08:00