summaryrefslogtreecommitdiff
path: root/mi
AgeCommit message (Collapse)AuthorFilesLines
2008-12-03Rework symbol visibility for easier maintenancePaulo Cesar Pereira de Andrade51-274/+274
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-12-02mi: UpdateSprite only if the device is attached.Peter Hutterer1-1/+1
2008-11-30Remove declarations of symbols that are never defined.Paulo Cesar Pereira de Andrade1-8/+0
These symbols were removed from the X Server, or never declared. One symbol that may need special attention is XkbBuildCoreState(), that doesn't have a prototype anywhere, but is called from xkb/xkbEvents.c:XkbFilterEvents(), and also used by the macros XkbStateFieldFromRec() and XkbGrabStateFromRec() defined in include/xkbstr.h. fb/wfbrename.h also may need some cleanup, as it makes several "renames" of non existing symbols.
2008-11-29Export symbols defined in the sdk.Paulo Cesar Pereira de Andrade18-47/+47
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-19mi: Push screen-saver/DPMS handling to after the EQ pop operation.Jeremy Huddleston1-10/+10
This way we on't need to hold the mutex during the dixSaveScreens() call. Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com> Signed-off-by: Tiago Vignatti <vignatti@c3sl.ufpr.br> Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
2008-11-19mi: Only increment tail (push) when the event data is actually in the queueJeremy Huddleston1-4/+3
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com> Signed-off-by: Tiago Vignatti <vignatti@c3sl.ufpr.br> Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
2008-11-11mi: clean up mieqProcessInputEvents, copy all events before processing.Peter Hutterer1-52/+46
Copy the EventRec's information into local variables before processing them, this should make it safer for upcoming threading and also makes it easier to read. Simplify the event allocation code from the abyss it was before. This also fixes a potential bug where a custom handler could scramble the event before the same -now scrambled- event was then passed through the master's custom event handler. Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
2008-11-08Remove some null statements.James Cloos1-1/+1
Remove several doubled statement-terminal semicolons. Reported by Fernando Carrijo.
2008-11-07mi: Fix infinite loop on regen when swrast_dri.so is missingJulien Cristau1-1/+2
The swrast DRI provider gets pushed on the glx provider stack at every server generation, so the stack turns into a circular list on regen. X.Org bug#18388 <https://bugs.freedesktop.org/show_bug.cgi?id=18388>
2008-11-04xkb: when faking mouse button events, fake them on the correct devices.Peter Hutterer1-1/+1
When MouseKeys are activated, keyboard devices may generate fake mouse button events through XKB. Let's get then running through the appropriate paths, i.e. as XI events on the correct device. To make matters more fun, ProcessOtherEvents drops events if the DIX device state cannot be updated accordingly, i.e. all button events from keyboard devices. Hence we need to get the paired MD for the device in XkbDDXFakeDeviceButton, and post the event through the paired MD (usually the VCP). Removes now-unused ddxFakeBtn.c. Note: this patch only half-arsedly fixed button events, motion events are a more complicated matter.
2008-11-04Remove XEvIEDaniel Stone1-15/+0
It's unmaintained and has been broken for quite a while; MPX finally smashed it completely. Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
2008-11-04Xi: XINPUT has been mandatory for agesDaniel Stone1-4/+3
Ditch all #ifdef XINPUT, since it's always built. Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
2008-10-26Nuke unused miBankNewSerialNumberJulien Cristau1-12/+0
2008-10-26Nuke prototype for nonexistent functionJulien Cristau1-4/+0
miDoInitVisuals was removed in commit 94825ad3c72a1c3f6a61199c302841f63241cf87, but its prototype was left.
2008-10-10mieq: Backtrace when the queue overflows.Adam Jackson1-0/+6
Since we're probably stuck down in a driver somewhere, let's at least try to point out where. This will need to be rethought when the input thread work lands though.
2008-10-08mi: functions here are carrying 'time' without need.Tiago Vignatti2-11/+9
2008-10-08mi: remove deprecated and unused functions.Tiago Vignatti2-36/+0
miPointerDeltaCursor, miPointerGetMotionBufferSize and miPointerSetNewScreen.
2008-10-06xalloc+bzero -> xcallocAdam Jackson1-2/+1
2008-10-03Dangling use of miDestroyGCOpsAdam Jackson1-1/+0
2008-10-03Fix compile for miSetScreenPixmap prototype.Adam Jackson1-4/+0
2008-10-03Delete unused miModifyBanking()Adam Jackson2-60/+0
2008-10-03Remove unused wrapping for visual initialization.Adam Jackson3-57/+3
2008-10-03staticize mi{G,S}etScreenPixmapAdam Jackson1-13/+13
2008-10-03miFindMaxBand is dead codeAdam Jackson2-34/+0
2008-10-03mi{Create,Destroy}GCOps are unused, nuke 'em.Adam Jackson2-33/+0
2008-10-03Remove a bunch of unused API from the mi export list.Adam Jackson15-25/+21
2008-10-03Remove the Must_have_memory hack.Adam Jackson2-13/+6
Also remove an astonishing amount of misunderstanding of how casts work.
2008-09-21mieq: Made custom event handlers safer for nevents >1Jeremy Huddleston1-12/+18
2008-09-19When resizing a window with redirected descendents, don't expose themKeith Packard1-0/+9
Bit/window gravity computations need to recompute exposures to manage the bits which are saved by gravity during the resize computation. That's easy for non-redirected windows where the bits are all within the parent's pixmap. For redirected windows, we don't need to deal with this at all, so just skip the whole re-computation adventure. Signed-off-by: Keith Packard <keithp@keithp.com>
2008-09-03mieq: Fix my broken cherry pick.Jeremy Huddleston1-2/+1
2008-09-03mieqProcessInputEvents: Check custom event handlers first.Jeremy Huddleston1-16/+13
2008-08-28Prepare for array-index based devPrivates.Tomas Carnecky6-13/+25
TODO: static indices can be made just an int; some indices can be combined.
2008-08-27Add an array of integers for use as per-screen cursor private keys.Eamon Walsh1-7/+7
Replaces the use of the screen pointer itself as the key, which was nice but won't work now that an array index is being stored.
2008-08-19Refactor misprite a bit.Adam Jackson2-26/+38
No variable declarations in header files, please.
2008-08-18Fix the tile offset in miPaintWindow for ParentRelative windows.Fredrik Höglund1-2/+2
2008-08-13Eviscerate save-under support.Adam Jackson4-313/+2
Use a compositing manager already. Plus I really wanted to use 'eviscerate' in a commit message.
2008-07-31Unifdef XIDLE.Adam Jackson1-12/+0
Seriously how was this still here.
2008-07-24Sync is built-in and mandatory.Adam Jackson1-11/+2
2008-07-24XC-MISC is built-in and mandatory.Adam Jackson1-11/+2
2008-07-24Bigreqs are built-in and mandatory.Adam Jackson1-11/+2
2008-07-24Shape extension is built-in and mandatory.Adam Jackson6-27/+2
2008-07-23Unifdef sgi.Adam Jackson1-1/+1
2008-07-23Unifdef QNX.Adam Jackson1-3/+0
Again, hasn't worked since at least 7.0.
2008-07-18Drop the FONTCACHE extension.Adam Jackson1-12/+0
This appears to have been dead code since X-TT was merged.
2008-07-16Make --enable-debug usable againDaniel Stone1-1/+1
Enable region debugging causes assertion failures (should really look into that, though), and I don't need four messages every time I move my pointer.
2008-07-16XFree86: Remove XFree86-Misc extensionDaniel Stone1-14/+0
Its last remaining purpose in life has been destroyed by input properties. Au revoir: it's been fun, by which I mean awful.
2008-07-04Remove unused function and variables.Tiago Vignatti1-1/+0
2008-07-04Remove deprecated function miPointerPosition().Tiago Vignatti2-12/+0
2008-06-25XTrap delenda est.Adam Jackson1-6/+0
2008-06-24Check for __amd64__, not __x86_64__.Adam Jackson1-1/+1
Spiritual revert of 1fa4de80fcfc697b5e5879cc351fb3e9dbf6acbe. Intel's C compiler claims to be gcc-compatible; if they're not defining the same macros as gcc then that's their bug, not ours. Even if we were to do this aliasing we should do it once and for all in servermd.h.