summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)AuthorFilesLines
2007-11-05Merge branch 'master' into XACE-SELINUXEamon Walsh9-29/+43
Conflicts: dix/dispatch.c dix/property.c hw/xfree86/common/xf86VidMode.c include/xkbsrv.h render/glyph.c xkb/xkbActions.c
2007-11-05Remove all traces of external RGB database (and Speedo)Daniel Stone4-19/+0
Remove all references to an external RGB database (which hasn't been enabled for a very long time). Also get rid of some references to Speedo fonts.
2007-11-05OS: Remove ALLOCATE_LOCAL from os.hDaniel Stone1-3/+0
Remove ALLOCATE_LOCAL_FALLBACK and DEALLOCATE_LOCAL_FALLBACK from os.h, and remove the include of Xalloca.h as well.
2007-11-04Add CreatePixmap allocation hints.Aaron Plattner1-1/+9
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-02Move SIGUSR1 notification as late as possible.Adam Jackson1-0/+2
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-10-30reduce wakeups from smart schedulerArjan van de Ven1-4/+2
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-28xkb: enable XI event processing for xkb.Peter Hutterer1-1/+2
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 Hutterer1-1/+2
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 Hutterer1-0/+21
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-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-25Merge branch 'master' into XACE-SELINUXEamon Walsh2-1/+4
Conflicts: GL/glx/glxscreens.c hw/xnest/Screen.c render/glyph.c render/glyphstr.h render/render.c
2007-10-23xace: Still more changes to selection code. Removed the SelectionPtr fromEamon Walsh1-0/+3
the hook - the hook only needs the Atom to control access to the selection object. Upgraded the SelectionCallback to take a client argument and additional type codes so that it can be used for redirection.
2007-10-23Get rid of unnecessary GNU extended variadic macro.Matthias Hopf1-1/+1
2007-10-22Define PCI_TXT_IDS_DIR more cleanlyDavid Nusinow1-0/+3
2007-10-19xace: Bug fixes, name changes to selection access hooks and fields.Eamon Walsh1-2/+2
2007-10-18dix: Add client parameter to AddPassiveGrabsToList().Eamon Walsh1-0/+1
2007-10-17Merge branch 'master' into XACE-SELINUXEamon Walsh4-5/+33
Conflicts: os/access.c
2007-10-16xace: update the DeleteProperty prototype to include the client argument.Eamon Walsh1-0/+1
This should have been part of 8f23d40068151ad85cde239d07031284f0b2c4dc.
2007-10-14mass change from #ifdef i386 to #ifdef __i386__ to conform to ANSIBen Byer1-5/+4
2007-10-11dix: Add a new "registry" mechanism for registering string names of things.Eamon Walsh4-5/+69
Supports protocol requests, events, and errors, and resource names. Modify XRES extension to use it.
2007-10-09Sun bug 6589829: include zoneid of shm segment in access policy for MIT-SHMAlan Coopersmith1-0/+3
<http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6589829> <http://www.opensolaris.org/os/community/arc/caselog/2007/500/>
2007-10-02make xephyr talk DRI protocol with hostXDodji Seketeli1-0/+2
* configure.ac,include/dix-config.h.in: define the XEPHYR_DRI macro. define it when --enable-xephyr and --enable-dri are both turned on. * hw/kdrive/ephyr/XF86dri.c: copy this from mesa source to enable Xephyr to talk DRI protocol the host X. In mesa, this is used by libGL.so to talk DRI protocol with the server. * hw/kdrive/ephyr/ephyr.c: finally initialise the DRI extension in the ephyrInitScreen() function. * hw/kdrive/ephyr/ephyrdri.c,ephyrdriext.c: safeguard the compilation using the XEPHYR_DRI macro.
2007-10-02Fix #12650: "windows not receiving mouse events in multiple screens context"Dodji Seketeli1-0/+3
* dix/events.c, include/dix.h: (UpdateSpriteForScreen): added this to update the mouse sprite context when we switch from a pScreen to another. * mi/mipointer.c: (miPointerWarpCursor): as we are switching to a new pScreen, don't forget to update the mouse sprite context.
2007-09-28xace: add hooks + new access codes: XKB extension.Eamon Walsh2-19/+31
Removes "LookupKeyboardDevice" and "LookupPointerDevice" in favor of inputInfo.keyboard and inputInfo.pointer, respectively; all use cases are non-XI compliant anyway.
2007-09-28xace: add new hooks + access controls: XInput extension.Eamon Walsh2-10/+5
Introduces new dix API to lookup a device, dixLookupDevice(), which replaces LookupDeviceIntRec and LookupDevice.
2007-09-27Rework local client id finding code to be more uniformAlan Coopersmith2-0/+21
2007-09-26Merge branch 'master' into XACE-SELINUXEamon Walsh1-0/+1
Conflicts: dix/devices.c
2007-09-25xace: change prototype of VALIDATE_DRAWABLE_AND_GC macro to allow accessEamon Walsh1-4/+2
mode to be passed to dixLookupDrawable.
2007-09-23Input: Generate XKB mapping changes for all core-sending devices (bug #12523)Daniel Stone1-0/+1
When we change the mapping on a core device, make sure we propagate this through to XKB for all extended devices as well.
2007-09-19devPrivates rework: move devPrivates field in drawable structure typesEamon Walsh2-2/+2
to just below the DrawableRec. Wish there were a better way to do this but it has to be in the same place for all drawable types.
2007-09-19Merge branch 'master' into XACE-SELINUXEamon Walsh2-2/+3
Conflicts: afb/afbpntwin.c afb/afbscrinit.c afb/afbwindow.c cfb/cfb.h cfb/cfballpriv.c cfb/cfbscrinit.c cfb/cfbwindow.c configure.ac fb/wfbrename.h hw/xfree86/xf4bpp/ppcIO.c hw/xfree86/xf4bpp/ppcPntWin.c hw/xfree86/xf4bpp/ppcWindow.c hw/xfree86/xf8_32bpp/cfbscrinit.c mfb/mfb.h mfb/mfbpntwin.c mfb/mfbscrinit.c mfb/mfbwindow.c mi/miexpose.c Note: conflicts caused by devPrivates rework vs. paintwindow changes.
2007-09-13Remove the PaintWindow optimization.Eric Anholt1-2/+2
This was an attempt to avoid scratch gc creation and validation for paintwin because that was expensive. This is not the case in current servers, and the danger of failure to implement it correctly (as seen in all previous implementations) is high enough to justify removing it. No performance difference detected with x11perf -create -move -resize -circulate on Xvfb. Leave the screen hooks for PaintWindow* in for now to avoid ABI change.
2007-09-06devPrivates rework: register an offset for every resource type, useEamon Walsh1-1/+8
signed values so -1 actually works correctly, and provide a macro for adding an offset to a pointer.
2007-09-05Fix key repeats during VT switch.Daniel Stone1-0/+1
Add keyc->postdown, which represents the key state as of the last mieqEnqueue call, and use it when we need to know the posted state, instead of the processed state (keyc->down). Add small functions to getevents.c to query and modify key state in postdown and use them all through, eliminating previously broken uses.
2007-08-30devPrivates rework: convert CursorRec and CursorBits over to new interface.Eamon Walsh1-2/+4
2007-08-28devPrivates rework: since API is already broken, switch everythingEamon Walsh18-94/+18
over to new system. Need to update documentation and address some remaining vestiges of old system such as CursorRec structure, fb "offman" structure, and FontRec privates.
2007-08-28Merge branch 'master' into XACE-SELINUXEamon Walsh4-3/+7
Conflicts: include/miscstruct.h mi/mibstore.c mi/midispcur.c os/Makefile.am
2007-08-26Add XSERVER_LIBPCIACCESS to xorg-server.h when using libpciaccessKeith Packard1-0/+3
2007-08-25Implement core protocol backing store exclusively in terms of Composite.Adam Jackson1-2/+0
Composite's automatic redirection is a more general mechanism than the ad-hoc BS machinery, so it's much prettier to implement the one in terms of the other. Composite now wraps ChangeWindowAttributes and activates automatic redirection for windows with backing store requested. The old backing store infrastructure is completely gutted: ABI-visible structures retain the function pointers, but they never get called, and all the open-coded conditionals throughout the DIX layer to implement BS are gone. Note that this is still not a strictly complete implementation of backing store, since Composite will throw the bits away on unmap and therefore WhenMapped and Always hints are equivalent.
2007-08-22Revert "Fix <pixman.h> include to <pixman/pixman.h>"Eric Anholt1-1/+1
The pixman headers have been located under pixman-1/ instead of pixman/ since around 2007-08-06, and pixman-1.pc has the updated include paths to account for this. This reverts commit feb1b3e45513bd6eaa2e6a5ee536183f20d9cb68.
2007-08-22Fix <pixman.h> include to <pixman/pixman.h>Alan Hourihane1-1/+1
2007-08-17Actually build Secure RPC authentication support (missed in modularization)Alan Coopersmith1-0/+3
2007-08-16devPrivates rework: Nevermind, can't const due to return value warnings.Eamon Walsh1-3/+3
This reverts commit 6fd0a0b08de912421718aca17fe34a55ae285ae7.
2007-08-16devPrivates rework: add const qualifier to key type.Eamon Walsh1-3/+3
2007-08-16devPrivates rework: use camelcase standard for name of key type.Eamon Walsh1-11/+11
2007-08-16xace: add hooks + new access codes: core protocol screensaver requestsEamon Walsh1-3/+4
2007-08-16xace: add hooks + new access codes: core protocol server requestsEamon Walsh2-3/+5
2007-08-15xace: add hooks + new access codes: core protocol cursor requestsEamon Walsh1-19/+7
2007-08-14xace: add hooks + new access codes: core protocol GC requestsEamon Walsh2-2/+4