summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2007-11-05mfb: Remove usage of allocaDaniel Stone9-81/+81
Replace with heap-based allocations.
2007-11-05mi: Remove usage of allocaDaniel Stone16-128/+128
Replace with heap allocations.
2007-11-05Damage: Remove usage of allocaDaniel Stone1-2/+2
Replace with heap allocations.
2007-11-05OS: Remove usage of allocaDaniel Stone1-5/+5
Replace with heap allocations.
2007-11-05RandR: Remove usage of allocaDaniel Stone1-2/+2
Replace with heap allocations.
2007-11-05Record: Remove usage of allocaDaniel Stone2-8/+8
Replace with xalloc/xfree.
2007-11-05Render: Remove usage of allocaDaniel Stone2-26/+26
Replace it with heap-based allocations.
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-11-05changing ALLOCATE_LOCAL to xalloc to prevent stack overflowBen Byer1-17/+17
2007-11-05pulling more patches over from xorg-xserver-1.2-apple branchBen Byer14-51/+98
2007-11-05more CVS tagsBen Byer2-4/+1
2007-11-05Removed CVS tags.Ben Byer19-39/+4
2007-11-04Add CreatePixmap allocation hints.Aaron Plattner65-97/+150
These hints allow an acceleration architecture to optimize allocation of certain types of pixmaps, such as pixmaps that will serve as backing pixmaps for redirected windows.
2007-11-04Config: HAL: Touchpads are pointers tooMarkku Vire1-1/+2
Treat touchpads -- not just mice -- as pointer devices.
2007-11-04XFree86: Input: Save/restore errno around SIGIO (bug #10683)Mark Vytlacil1-0/+2
Make sure errno is saved and restored from the SIGIO handler, so errors from system calls in input handlers don't break the interrupted code.
2007-11-04pulling in changes from xorg-server-1.2-apple branchBen Byer7-32/+34
2007-11-04add missing null-pointer checksBen Byer1-1/+1
2007-11-02Always duplicate mode name when duplicating a mode.Matthias Hopf1-2/+1
If the originating mode didn't have a name, we would end up with the name of the original mode being setup correctly, but with the name of the copy still being NULL.
2007-11-02Restore build of xf8_16bpp.Adam Jackson1-2/+2
It doesn't link against cfb, so don't conditionalize its build against cfb.
2007-11-02Fix crash in xf86InitOrigins()Kristian Høgsberg1-0/+8
In a multihead setup, if only the first screen can be initialized, but the second screen is mentioned first in the ServerLayout section, the xf86InitOrigins() function will crash because the screen referred to in the e.g. "RightOf" part is non-existent.
2007-11-02Don't filter modes away during VBE mode list construction.Adam Jackson1-28/+0
Pass all VBE modes back up to the driver, on the assumption that it knows how to filter modes intelligently.
2007-11-02Fix magic number in fbdevhwAdam Jackson1-1/+1
The transformation between fbdev and xfree86 mode timings needs to be invertible, otherwise Xen and other framebuffers that don't have real pixel clocks won't initialize.
2007-11-02Disable explicit commenting in Monitor section.Adam Jackson1-2/+0
2007-11-02Avoid PS/2 protocol probing for /dev/input/miceAdam Jackson1-8/+24
The kernel will always upconvert to ExplorerPS/2 for all readers of /dev/input/mice, so don't waste time on startup trying to figure that out.
2007-11-02Fix accidental ABI usage in RANDR 1.2 drivers.Adam Jackson2-2/+2
Due to RANDR 1.2, xf86findOptionValue and xf86nameCompare are now ABI. Make sure they're exported from the server.
2007-11-02Move SIGUSR1 notification as late as possible.Adam Jackson3-38/+53
If we inherited a signal mask from the parent process that ignores SIGUSR1, then we will send SIGUSR1 to the parent to indicate when we're ready to accept connections. Unfortunately, we send this notification way too early, right after creating the sockets rather than just before entering the main loop. Move it to just before Dispatch() so we're not lying quite so much.
2007-11-01Enable MIT-SHM in Xdmx.Adam Jackson1-2/+0
The extension is entirely DIX-level, no new DDX changes needed.
2007-10-30reduce wakeups from smart schedulerArjan van de Ven3-37/+8
The smart scheduler itimer currently always fires after each request (which in turn causes the CPU to wake out of idle, burning precious power). Rather than doing this, just stop the timer before going into the select() portion of the WaitFor loop. It's a cheap system call, and it will only get called if there's no more commands batched up from the active fd. This change also allows some of the functions to be simplified; setitimer() will only fail if it's passed invalid data, and we don't do that... so make it void and remove all the conditional code that deals with failure. The change also allows us to remove a few variables that were used for housekeeping between the signal handler and the main loop. Signed-off-by: Keith Packard <keithp@koto.keithp.com>
2007-10-29Set up visuals for the existing X visuals.Kristian Høgsberg3-20/+41
This makes the root visual a GLX capable visual again and adds a GLX visual for the COMPOSITE ARGB visual cleanly (as opposed to the hack we had before).
2007-10-29Change the GLX module to initialize after COMPOSITE.Kristian Høgsberg2-11/+11
This changes the module initalization order so that the GLX module initializes after COMPOSITE. The reason for this change is to be able to initialize a GLX visual config for the COMPOSITE ARGB visual.
2007-10-28xfree86: wrap keyboard devices for XKB.Peter Hutterer1-0/+5
Call ProcessOtherEvents first, then for all keyboard devices let them be wrapped by XKB. This way all XI events will go through XKB. Note that the VCK is still not wrapped, so core events will bypass XKB. (cherry picked from commit d627061b48ae06d27b37be209d67a3f4f2388dd3)
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-28dix: don't compress motion events from different devices (EventEnqueue)Peter Hutterer1-1/+2
(cherry picked from commit 8840829ab93c4eb62eb58753c015da5307133fe5)
2007-10-28dix: add XI event support to FixKeyState.Peter Hutterer1-12/+9
FixKeyState needs to be able to handle XI events, otherwise we get "impossible keyboard events" on server zaps and other special key combos. (cherry picked from commit 5ee409794ee604fcf84886f70429fc2d6b1ff4f1)
2007-10-28xkb: enable XI event processing for xkb.Peter Hutterer4-44/+103
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 Hutterer2-8/+12
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 Hutterer2-49/+57
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-28XFree86: Remove ridiculous SIGIO debuggingDaniel Stone1-6/+0
YOU PRESSED A KEY AND AGAIN YOU RELEASED A KEY AND AGAIN YOU PRESSED A KEY AND AGAIN ... not so much.
2007-10-28XKB: Add more bits to xkbsrv.hDaniel Stone1-0/+3
Add the device private index, given we use that in a macro here, and also the prototype for xkbUnwrapProc, since that's also useful.
2007-10-28Xi: Include XI protocol header in exevents.hDaniel Stone1-0/+2
Make sure we have all the types we need to use this header.
2007-10-28configure.ac/XFree86: Only build XF86Misc and XF86VidMode when appropriateDaniel Stone2-5/+13
Don't build XF86Misc or XF86Vidmode in hw/xfree86/dixmod when it's been explicitly disabled in configure, or we don't have the proto modules installed.
2007-10-26Restore the CompositeGlyphs -> ps->Glyphs -> miGlyphs callchain to allow ↵Aaron Plattner2-25/+24
acceleration architectures to wrap above miGlyphs.
2007-10-26Weed out some unused fluff from __GLXcontext.Kristian Høgsberg6-44/+4
2007-10-26Include stddef.h for size_t.Bernardo Innocenti1-0/+1
This is required by a buggy version of the openssl/sha.h header which is distributed with Fedora 7.
2007-10-26Quiet glx visual debug info.Kristian Høgsberg1-2/+0
2007-10-26Nuke superfluous ",", added missing include for xf86i2c.h.Matthias Hopf1-2/+3
2007-10-26XFree86 Misc/VidMode: Remove ridiculous debug ErrorFsDaniel Stone2-66/+0
When we're building with --enable-debug, don't emit an ErrorF every time a function gets called.