summaryrefslogtreecommitdiff
path: root/mi
AgeCommit message (Collapse)AuthorFilesLines
2008-12-01input: don't switch MDs' classes around between SDs.Peter Hutterer1-8/+3
Server 1.6 uses the X Input 1.x input model, where the core devices (VCP and VCK) do not generate XI events. They don't have to swap device classes but instead stay at the default number of classes at all times. This means we can get rid of the DeviceClassesChangedEvents as well.
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.
2008-06-18mi: remove trailing whitespaces from misprite.cPeter Hutterer1-36/+37
2008-06-13Fix "warning: unused variable ‘pDev’, `pPointer'".Eamon Walsh1-0/+2
2008-06-11CopyGetMasterEvent() can be static.Tiago Vignatti1-1/+1