summaryrefslogtreecommitdiff
path: root/dix
AgeCommit message (Collapse)AuthorFilesLines
2008-04-15dix: Call DeleteInputDeviceRequest from CloseDownDevices (#14418)Peter Hutterer1-2/+2
The DDX (xfree86 anyway) maintains its own device list in addition to the one in the DIX. CloseDevice will only remove it from the DIX, not the DDX. If the server then restarts (last client disconnects), the DDX devices are still there, will be re-initialised, then the hal devices come in and are added too. This repeats until we run out of device ids. This also requires us to strdup() the default pointer/keyboard in checkCoreInputDevices. X.Org Bug 14418 <http://bugs.freedesktop.org/show_bug.cgi?id=14418> (cherry picked from commit 6d22a9615a0e6ab3d00b0bcb22ff001b6ece02ae)
2008-03-25Fix that last commit.Adam Jackson1-1/+1
I can apply patches, really. (cherry picked from commit 333e7123dc484888d79c0f5aa3977bd72f1eb341)
2008-03-25Fix getValuatorEvents to compute number of valuators correctly.Sascha Hlusiak1-1/+1
(cherry picked from commit e7a364425547103a98acabfc67d16e1ae0c2967f)
2008-03-04XACE: Check the return value of the selection create hook call.Eamon Walsh1-1/+6
(cherry picked from commit 056a2ce02ce85013e89055ee44a7aa3eabedac09)
2008-03-04dix: Convert selection list to a linked list.Eamon Walsh1-26/+22
Fixes a bug where pointers were being invalidated after a realloc. (cherry picked from commit 72f2197545e734cd0aa785d05a57b2fc0351a763)
2008-02-29XACE: Add generic support for property and selection polyinstantiation.Eamon Walsh2-5/+11
2008-02-29dix: Refactoring of selection code to allow for polyinstantiation.Eamon Walsh4-274/+309
Introduces dixLookupSelection() API. Removes NumCurrentSelections from API.
2008-02-29dix: Refactoring of property code to allow for polyinstantiation.Eamon Walsh1-117/+104
Introduces dixLookupProperty() API.
2008-02-29On second thought, revert that, it'll make large pixmaps painfully slow.Adam Jackson1-1/+1
Need to just fix the callers.
2008-02-29Bug #10465: Use calloc() for allocating PixmapRec's.Chris Wilson1-1/+1
2008-02-29Bug #10464: Set pixel value to 0 before FindColor()Chris Wilson1-0/+1
2008-02-27dix: set dev->key to NULL after freeing it in CloseDevice. (Bug #12830)Peter Hutterer1-0/+1
Otherwise XkbRemoveResourceClient may try to dereference it lateron. X.Org Bug 12830 <http://bugs.freedesktop.org/show_bug.cgi?id=12830>
2008-02-20XACE: Make the default window background state configurable per-window.Eamon Walsh1-4/+5
To recap: the original XC-SECURITY extension disallowed background "None" if the window was untrusted. XACE 1.0 preserved this check as a hook function. XACE pre-2.0 removed the hook and first abolished background "None entirely, then restored it as a global on/off switch in response to Bug #13683. Now it's back to being per-window, via a flag instead of a hook function.
2008-02-20Remove COMPOSITE ifdefs around WindowRec bitfield as it has no ABI effect.Eamon Walsh1-2/+0
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-02-13XACE: Change access modes for some device-related requests.Eamon Walsh1-5/+5
Opening a device is not really "reading" it. Requests that globally configure a device should require "manage" access.
2008-02-14Silence an error message in ConfigureWindow that never happens.Adam Jackson1-1/+1
2008-02-14Silence FreeResource()Adam Jackson1-5/+0
2008-02-14Silence the harmless FreeFontPath error message.Adam Jackson1-3/+0
2008-02-14requestingClient is an xprintism, hide it for other servers.Adam Jackson3-1/+10
2008-02-14Simplify critical output flushing.Adam Jackson1-6/+2
2008-02-14Rip out useless indirection in the callback list management.Adam Jackson1-15/+6
2008-02-12XACE: Move the selection access hook to its own function.Eamon Walsh1-6/+4
2008-02-07XACE: Correct some protocol error values in the colormap routines.Eamon Walsh1-3/+3
2008-02-05XACE: Move the property access hook to its own function.Eamon Walsh1-9/+7
2008-02-05dix: Move motion history update until after screen crossing and clippingMagnus Vigerlöf1-9/+9
Cross screen and clip the coordinates before updating the motion history so that it will have the same contents as the events that are reported.
2008-02-05dix: Skip call to clipAxis for relative core-eventsMagnus Vigerlöf1-11/+33
Relative events that generates both core and extention events will have its axis cliped and screen changed by miPointerSetPosition when the events are processed. For absolute and non core-generating relative events the axis must be clipped if we shouldn't end up completely outside the defined ranges (if any).
2008-02-05Bug # 10324: dix: Add scaling of X and Y on the reported pointer-eventsMagnus Vigerlöf1-21/+76
Restore the rescaling code for x and y axis when generating motion events.
2008-02-05Bug # 10324: dix: Allow arbitrary value ranges in GetPointerEventsMagnus Vigerlöf1-4/+7
Don't use a possitive value as a marker for if a max-value is defined on the valuators. Use the existence of a valid value range instead. This will also make it possible to define arbitrary start and end-values for min and max as long as min < max.
2008-02-05dix: Always add valuator information if presentMagnus Vigerlöf1-5/+2
Send valuator information for all event types, not only for MotionEvents and absolute button events.
2008-01-30dix: print out event type if a bogus pointer event occurs.Peter Hutterer1-1/+1
2008-01-25XACE: Stop using fake requestVectors in favor of a simple hook call.Eamon Walsh1-2/+3
2008-01-17Fix for CVE-2008-0006 - PCF Font parser buffer overflow.Matthieu Herrb1-0/+7
2008-01-16Don't break grab and focus state for a window when redirecting it.Kristian Høgsberg1-1/+2
Composite uses an unmap/map cycle to trigger backing pixmap allocation and cliprect recomputation when a window is redirected or unredirected. To avoid protocol visible side effects, map and unmap events are disabled temporarily. However, when a window is unmapped it is also removed from grabs and loses focus, but these state changes are not disabled. This change supresses the unmap side effects during the composite unmap/map cycle and fixes this bug: http://bugzilla.gnome.org/show_bug.cgi?id=488264 where compiz would cause gnome-screensaver to lose its grab when compiz unredirects the fullscreen lock window.
2008-01-08dix: set the correct number of valuators in valuator events.Peter Hutterer1-1/+1
(first_valuator + num_valuators) must never be larger than the number of axes, otherwise DIX freaks out. And from looking at libXI, anything larger than 6 is wrong too. (cherry picked from commit 9f6ae61ad12cc2813d04405458e1ca5aed8a539e)
2008-01-03devPrivates rework: Free callback lists after use.Eamon Walsh1-0/+2
2008-01-03dix: Fix bug+leak in callback manager DeleteCallbackList function.Eamon Walsh1-1/+1
2008-01-02Restore include & typedef needed by dtraceAlan Coopersmith1-0/+2
996b621bec1bbc4fb21970c75eaec62053bc6ccb deleted a couple lines too many
2007-12-28Input: Don't reinit devicesDaniel Stone1-1/+2
If a device is already initialised (i.e. the virtual core devices) during IASD, don't init them again. This fixes a leak.
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-17XACE: Restore the old background None behavior in response to bug #13683.Eamon Walsh1-2/+2
From the X11 protocol spec: "If background None is specified, the window has no defined background." This means that toolkits and apps cannot rely on the "transparent" nature of the current implementation! At some point before the next release, XACE will switch back to a solid background as the default.
2007-12-14Input: Fix proximity events with valuatorsBartosz Fabianowski1-1/+1
Initialise num_events to 1, so we always send a proximity event, and then optionally valuator events. Also make sure mieq can deal with valuator events sent after proximity events.
2007-12-13Merge branch 'master' into XACE-SELINUXEamon Walsh2-8/+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-12-02Clean up many #if 0.Adam Jackson1-7/+0
2007-11-26registry: add missing include statement.Eamon Walsh1-0/+1
2007-11-26registry: swap out the DTRACE XErrorDB stuff for the new registry call.Eamon Walsh2-87/+2
2007-11-26registry: Add a call for DTRACE compatibility.Eamon Walsh1-0/+19
2007-11-26registry: Rebase registry to use the server config file of protocol names.Eamon Walsh2-195/+130
2007-11-26registry: Add a great big list of protocol names, like the XErrorDB thatEamon Walsh2-0/+1058
ships with Xlib. This is considered temporary, until server-side XCB can solve the problem programmatically.
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.