summaryrefslogtreecommitdiff
path: root/dix/main.c
AgeCommit message (Collapse)AuthorFilesLines
2009-08-11Disable the out-of-bounds workaround in pixman.Soren Sandmann Pedersen1-0/+3
This workaround was necessary for older X servers, but now fb should be using correct coordinates. Also bump pixman requirement to 0.15.20.
2009-07-15Update to xextproto 7.0.99.1.Peter Hutterer1-2/+1
xextproto had Xlib client headers moved into libXext. Protocol header files are named fooproto.h, header files with constants foo.h or fooconst.h where foo.h was already in use for client-side headers.
2009-04-28dix: remove all but main() from main.cPeter Hutterer1-368/+0
All other functions are pushed into where they seemed to fit. main.c is now linked separately into libmain.a and linked in by the various DDXs. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-04-14Move VENDOR_* defines from AC_SUBST to a header to avoid angering shave.Eric Anholt1-0/+1
This is more sane anyway, as it ensures a rebuild when changing them.
2009-04-03DPMS: Remove the defaultDPMS* variablesAdam Jackson1-4/+4
2009-02-16xserver: Avoid sending uninitialized padding data over the networkPeter Åstrand1-4/+8
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-02-13dix: remove DefineInitialRootWindow()Peter Hutterer1-1/+0
Obsolete. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-01-22Remove a bunch of useless casts.Adam Jackson1-2/+2
We've had void * for twenty years now people let's try to act like we know how it works.
2009-01-16XQuartz: mieq: Wait for the server to finish initializing before letting ↵Jeremy Huddleston1-0/+14
other threads mieqEnqueue Avoid possible race condition whereby one thread might call mieqEnqueue before InitAndStartDevices finishes (cherry picked from commit 94e417ac87a98cd5c6bf2d7c495d702748398931)
2008-12-12Remove #define NEED_EVENTS and NEED_REPLIESPeter Hutterer1-1/+0
A grep on xorg/* revealed there's no consumer of this define. Quote Alan Coopersmith: "The consumer was in past versions of the headers now located in proto/x11proto - for instance, in X11R6.0's xc/include/Xproto.h, all the event definitions were only available if NEED_EVENTS were defined, and all the reply definitions required NEED_REPLIES. Looks like Xproto.h dropped them by X11R6.3, which didn't have the #ifdef's anymore, so these are truly ancient now." Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com> Signed-off-by: Adam Jackson <ajax@redhat.com>
2008-12-03Rework symbol visibility for easier maintenancePaulo Cesar Pereira de Andrade1-6/+6
Save in a few special cases, _X_EXPORT should not be used in C source files. Instead, it should be used in headers, and the proper C source include that header. Some special cases are symbols that need to be shared between modules, but not expected to be used by external drivers, and symbols that are accessible via LoaderSymbol/dlopen. This patch also adds conditionally some new sdk header files, depending on extensions enabled. These files were added to match pattern for other extensions/modules, that is, have the headers "deciding" symbol visibility in the sdk. These headers are: o Xext/panoramiXsrv.h, Xext/panoramiX.h o fbpict.h (unconditionally) o vidmodeproc.h o mioverlay.h (unconditionally, used only by xaa) o xfixes.h (unconditionally, symbols required by dri2) LoaderSymbol and similar functions now don't have different prototypes, in loaderProcs.h and xf86Module.h, so that both headers can be included, without the need of defining IN_LOADER. xf86NewInputDevice() device prototype readded to xf86Xinput.h, but not exported (and with a comment about it).
2008-11-29Export symbols defined in the sdk.Paulo Cesar Pereira de Andrade1-4/+4
This is the biggest "visibility" patch. Instead of doing a "export" symbol on demand, export everything in the sdk, so that if some module fails due to an unresolved symbol, it is because it is using a symbol not in the sdk. Most exported symbols shouldn't really be made visible, neither advertised in the sdk, as they are only used by a single shared object. Symbols in the sdk (or referenced in sdk macros), but not defined anywhere include: XkbBuildCoreState() XkbInitialMap XkbXIUnsupported XkbCheckActionVMods() XkbSendCompatNotify() XkbDDXFakePointerButton() XkbDDXApplyConfig() _XkbStrCaseCmp() _XkbErrMessages[] _XkbErrCode _XkbErrLocation _XkbErrData XkbAccessXDetailText() XkbNKNDetailMaskText() XkbLookupGroupAndLevel() XkbInitAtoms() XkbGetOrderedDrawables() XkbFreeOrderedDrawables() XkbConvertXkbComponents() XkbWriteXKBSemantics() XkbWriteXKBLayout() XkbWriteXKBKeymap() XkbWriteXKBFile() XkbWriteCFile() XkbWriteXKMFile() XkbWriteToServer() XkbMergeFile() XkmFindTOCEntry() XkmReadFileSection() XkmReadFileSectionName() InitExtInput() xf86CheckButton() xf86SwitchCoreDevice() RamDacSetGamma() RamDacRestoreDACValues() xf86Bpp xf86ConfigPix24 xf86MouseCflags[] xf86SupportedMouseTypes[] xf86NumMouseTypes xf86ChangeBusIndex() xf86EntityEnter() xf86EntityLeave() xf86WrapperInit() xf86RingBell() xf86findOptionBoolean() xf86debugListOptions() LoadSubModuleLocal() LoaderSymbolLocal() getInt10Rec() xf86CurrentScreen xf86ReallocatePciResources() xf86NewSerialNumber() xf86RandRSetInitialMode() fbCompositeSolidMask_nx1xn fbCompositeSolidMask_nx8888x0565C fbCompositeSolidMask_nx8888x8888C fbCompositeSolidMask_nx8x0565 fbCompositeSolidMask_nx8x0888 fbCompositeSolidMask_nx8x8888 fbCompositeSrc_0565x0565 fbCompositeSrc_8888x0565 fbCompositeSrc_8888x0888 fbCompositeSrc_8888x8888 fbCompositeSrcAdd_1000x1000 fbCompositeSrcAdd_8000x8000 fbCompositeSrcAdd_8888x8888 fbGeneration fbIn fbOver fbOver24 fbOverlayGeneration fbRasterizeEdges fbRestoreAreas fbSaveAreas composeFunctions VBEBuildVbeModeList() VBECalcVbeModeIndex() TIramdac3030CalculateMNPForClock() shadowBufPtr shadowFindBuf() miRRGetScreenInfo() RRSetScreenConfig() RRModePruneUnused() PixmanImageFromPicture() extern int miPointerGetMotionEvents() miClipPicture() miRasterizeTriangle() fbPush1toN() fbInitializeBackingStore() ddxBeforeReset() SetupSprite() InitSprite() DGADeliverEvent() SPECIAL CASES o defined as _X_INTERNAL xf86NewInputDevice() o defined as static fbGCPrivateKey fbOverlayScreenPrivateKey fbScreenPrivateKey fbWinPrivateKey o defined in libXfont.so, but declared in xorg/dixfont.h GetGlyphs() QueryGlyphExtents() QueryTextExtents() ParseGlyphCachingMode() InitGlyphCaching() SetGlyphCachingMode()
2008-11-24dix: Enable core devices in InitCoreDevices already.Peter Hutterer1-2/+1
Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com> Signed-off-by: Daniel Stone <daniel@fooishbar.org> Signed-off-by: Adam Jackson <ajax@redhat.com>
2008-10-26Nuke unused variablesJulien Cristau1-1/+0
2008-10-03Remove unused wrapping for visual initialization.Adam Jackson1-1/+0
2008-10-03const cleanupAdam Jackson1-1/+1
2008-10-02Don't inherit XAUTHORITY from the environment.Adam Jackson1-4/+0
It's not especially obvious, and unpleasantly overloaded for the Xnest case. Typically this gives you a server that looks for its auth data in the authority file you were using for the running X session, which generally doesn't have an entry for the display you just started. All the major dm's, and startx, pass -auth explicitly, so this shouldn't cause too much upheaval.
2008-08-20Centralize declaration of ConnectionInfo.Adam Jackson1-1/+0
2008-08-13Eviscerate save-under support.Adam Jackson1-1/+1
Use a compositing manager already. Plus I really wanted to use 'eviscerate' in a commit message.
2008-08-05Redefine clients as a fixed arrayTomas Carnecky1-4/+1
This removes yet another xalloc() each server generation. Also, I couldn't find the corresponding xfree() so I guess that used to be a memory leak there.
2008-08-05Redefine WindowTable as a fixed arrayTomas Carnecky1-6/+1
Instead of xalloc'ing it every server generation. The array is always the same size (MAXSCREENS), anyway.
2008-07-21dix: Remove insane BC hacksDaniel Stone1-12/+1
If your DDX needs a 1bpp mode and doesn't set it up, your DDX is incompetent.
2008-07-17Nuke some ancient code for commandline-challenged OSes.Adam Jackson1-4/+0
This appears to have been dead code even in 6.7.
2008-07-16Remove the numVideoScreens xprintism.Adam Jackson1-3/+0
This was to account for cases where you had video and print screens in the same server. Lunacy. Leave the slot in ScreenInfo, but rename it, and stop looking at it.
2008-06-25dix: free memory associated with the EventList. #16507Peter Hutterer1-0/+1
Un-deprecates CloseDownEvents. X.Org Bug 16507 <http://bugs.freedesktop.org/show_bug.cgi?id=16507>
2008-05-26Merge branch 'master' into mpxPeter Hutterer1-1/+0
2008-05-21drop xprint remnants: InitGlobalsGeorge Sapountzis1-1/+0
2008-05-20dix: shut up two compiler warnings.Peter Hutterer1-1/+1
2008-05-20Merge branch 'master' into mpxPeter Hutterer1-21/+2
Conflicts: Xext/xprint.c (removed in master) config/hal.c dix/main.c hw/kdrive/ati/ati_cursor.c (removed in master) hw/kdrive/i810/i810_cursor.c (removed in master) hw/xprint/ddxInit.c (removed in master) xkb/ddxLoad.c
2008-05-14Simplify default font path setup.Adam Jackson1-7/+2
2008-05-14Remove global argc/argv variables.Adam Jackson1-5/+0
Was only used in the logging code anymore, and uselessly so there.
2008-05-14dix: InitAndStartDevices doesn't need a window parameter.Peter Hutterer1-1/+1
Leftover from the old pointer-keyboard pairing code, obsolete and gone now.
2008-05-12X n'est pas une print API.Adam Jackson1-9/+0
2008-05-02Merge branch 'master' into mpxPeter Hutterer1-12/+7
Conflicts: Xi/exevents.c dix/devices.c
2008-04-26XQuartz: Cleaned up startup and thread creation a tad.Jeremy Huddleston1-12/+4
(cherry picked from commit c861fe00e112b21ee0156d09a6cd5281642a1dcc)
2008-04-25dix: remove obsolete InitWindowPrivates().Peter Hutterer1-2/+0
2008-04-24dix: NULL out WindowTable after freeing all the windows.Peter Hutterer1-0/+3
CloseDownDevices() tries to send PresenceNotify events. If the windows are already freed, then we are accessing dangling pointers.
2008-04-22Merge branch 'master' into mpxPeter Hutterer1-14/+0
Conflicts: Xext/EVI.c Xext/appgroup.c Xext/cup.c Xext/mitmisc.c Xext/sampleEVI.c dix/window.c
2008-04-17removed Xquartz debugging code that leaked into master. Our Bad.Ben Byer1-14/+0
2008-04-07Merge branch 'master' into dcdc_reworkPeter Hutterer1-0/+16
Conflicts: Xext/xevie.c dix/dispatch.c
2008-04-02shovelling code around ...Ben Byer1-0/+14
(cherry picked from commit 2143182ba49195bbb2e9163ea6872fd68e7a4a85)
2008-03-04Merge branch 'master' into mpxPeter Hutterer1-9/+0
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-02-29dix: Refactoring of selection code to allow for polyinstantiation.Eamon Walsh1-0/+2
Introduces dixLookupSelection() API. Removes NumCurrentSelections from API.
2008-02-17main(): Remove uncredible failureDaniel Stone1-9/+0
NO, NO, NO. NO. The only way this could possibly be worse is if you were viewing it in Comic Sans.
2008-01-03Merge branch 'master' into mpxPeter Hutterer1-51/+21
Conflicts: XTrap/xtrapddmi.c Xext/security.c Xext/xprint.c Xext/xtest.c Xext/xvdisp.c Xi/exevents.c Xi/grabdevb.c Xi/grabdevk.c Xi/opendev.c Xi/ungrdev.c Xi/ungrdevb.c Xi/ungrdevk.c dix/cursor.c dix/devices.c dix/dixutils.c dix/events.c dix/getevents.c dix/main.c dix/window.c hw/xfree86/ramdac/xf86Cursor.c include/dix.h include/input.h include/inputstr.h mi/midispcur.c mi/miinitext.c mi/misprite.c render/animcur.c xfixes/cursor.c xkb/xkbAccessX.c
2007-12-20Xquartz: General CleanupJeremy Huddleston1-0/+4
General code cleanup, whitespace, dead code removal, added missing prototypes. Made Xquartz come to foreground later in startup, so it doesn't appear for Xquartz -version (cherry picked from commit 36922e8ff4316c93843aa3fe959cf8df3c7d5892)
2007-12-13Merge branch 'master' into XACE-SELINUXEamon Walsh1-1/+1
Conflicts: Xext/EVI.c Xext/bigreq.c Xext/cup.c Xext/dpms.c Xext/fontcache.c Xext/mitmisc.c Xext/xcmisc.c Xext/xf86bigfont.c Xext/xtest.c configure.ac dbe/dbe.c hw/darwin/darwin.h hw/darwin/darwinEvents.c hw/darwin/iokit/xfIOKit.h hw/darwin/iokit/xfIOKitCursor.c hw/darwin/quartz/fullscreen/fullscreen.c hw/darwin/quartz/fullscreen/quartzCursor.c hw/darwin/quartz/quartz.c hw/darwin/quartz/quartzCommon.h hw/darwin/quartz/quartzCursor.c hw/darwin/quartz/xpr/dri.c hw/darwin/quartz/xpr/dristruct.h hw/darwin/quartz/xpr/xprCursor.c hw/darwin/quartz/xpr/xprFrame.c hw/xfree86/modes/xf86RandR12.c include/cursor.h miext/rootless/rootlessCommon.h miext/rootless/rootlessScreen.c miext/rootless/rootlessWindow.c render/picturestr.h Trying to pick up the pieces from the darwin churn here...
2007-11-21Darwin: Dead code removal, Code cleanup, Added launcherJeremy Huddleston1-1/+1
Imported changes from xorg-server-1.2-apple to make master more current wrt file layout, build system changes, and dead code removal.
2007-11-20Remove some duplicate include statements.Eamon Walsh1-1/+0
2007-11-19xace: restore the old SaveScreens function and introduce new API, since theEamon Walsh1-2/+2
old version is called from drivers...