Adam Jackson
ae8edf3ee7
Fix that last commit.
...
I can apply patches, really.
(cherry picked from commit 333e7123dc
)
2008-03-25 12:48:44 -04:00
Sascha Hlusiak
ff99a3aa2b
Fix getValuatorEvents to compute number of valuators correctly.
...
(cherry picked from commit e7a3644255
)
2008-03-25 12:33:03 -04:00
Eamon Walsh
926f32df3c
XACE: Check the return value of the selection create hook call.
...
(cherry picked from commit 056a2ce02c
)
2008-03-04 02:46:20 -05:00
Eamon Walsh
7f74ba1b77
dix: Convert selection list to a linked list.
...
Fixes a bug where pointers were being invalidated after a realloc.
(cherry picked from commit 72f2197545
)
2008-03-04 02:17:13 -05:00
Eamon Walsh
cc76ea6e3a
XACE: Add generic support for property and selection polyinstantiation.
2008-02-29 18:01:37 -05:00
Eamon Walsh
34bf308a9e
dix: Refactoring of selection code to allow for polyinstantiation.
...
Introduces dixLookupSelection() API.
Removes NumCurrentSelections from API.
2008-02-29 18:01:37 -05:00
Eamon Walsh
d5715f7bea
dix: Refactoring of property code to allow for polyinstantiation.
...
Introduces dixLookupProperty() API.
2008-02-29 18:01:37 -05:00
Adam Jackson
c0e1959f28
On second thought, revert that, it'll make large pixmaps painfully slow.
...
Need to just fix the callers.
2008-02-29 16:45:11 -05:00
Chris Wilson
4a44fe7c86
Bug #10465 : Use calloc() for allocating PixmapRec's.
2008-02-29 16:43:14 -05:00
Chris Wilson
5d5fcc7198
Bug #10464 : Set pixel value to 0 before FindColor()
2008-02-29 16:42:04 -05:00
Peter Hutterer
2257e20900
dix: set dev->key to NULL after freeing it in CloseDevice. (Bug #12830 )
...
Otherwise XkbRemoveResourceClient may try to dereference it lateron.
X.Org Bug 12830 <http://bugs.freedesktop.org/show_bug.cgi?id=12830 >
2008-02-27 17:32:29 +10:30
Eamon Walsh
f343265a28
XACE: Make the default window background state configurable per-window.
...
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-20 15:59:40 -05:00
Eamon Walsh
7c2f0a8bef
Remove COMPOSITE ifdefs around WindowRec bitfield as it has no ABI effect.
2008-02-20 15:59:39 -05:00
Daniel Stone
37867626e3
main(): Remove uncredible failure
...
NO, NO, NO.
NO.
The only way this could possibly be worse is if you were viewing it in
Comic Sans.
2008-02-17 22:52:06 +02:00
Eamon Walsh
ae43d835bd
XACE: Change access modes for some device-related requests.
...
Opening a device is not really "reading" it.
Requests that globally configure a device should require "manage" access.
2008-02-13 20:20:49 -05:00
Adam Jackson
b740b865e4
Silence an error message in ConfigureWindow that never happens.
2008-02-14 07:51:33 +11:00
Adam Jackson
89d3249c3e
Silence FreeResource()
2008-02-14 07:51:29 +11:00
Adam Jackson
9113fa3de3
Silence the harmless FreeFontPath error message.
2008-02-14 07:12:24 +11:00
Adam Jackson
7c0709a736
requestingClient is an xprintism, hide it for other servers.
2008-02-14 07:11:52 +11:00
Adam Jackson
2ce35f6d45
Simplify critical output flushing.
2008-02-14 07:07:51 +11:00
Adam Jackson
aa5216e897
Rip out useless indirection in the callback list management.
2008-02-14 07:02:13 +11:00
Eamon Walsh
0d492b2166
XACE: Move the selection access hook to its own function.
2008-02-12 19:59:10 -05:00
Eamon Walsh
de16a8c530
XACE: Correct some protocol error values in the colormap routines.
2008-02-07 20:14:16 -05:00
Eamon Walsh
bb1a577a68
XACE: Move the property access hook to its own function.
2008-02-05 20:07:08 -05:00
Magnus Vigerlöf
a56ef7aaa4
dix: Move motion history update until after screen crossing and clipping
...
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-05 21:12:52 +01:00
Magnus Vigerlöf
a0284d577a
dix: Skip call to clipAxis for relative core-events
...
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-05 21:12:52 +01:00
Magnus Vigerlöf
d9e23c4ff1
Bug # 10324: dix: Add scaling of X and Y on the reported pointer-events
...
Restore the rescaling code for x and y axis when generating
motion events.
2008-02-05 21:12:52 +01:00
Magnus Vigerlöf
f04c083869
Bug # 10324: dix: Allow arbitrary value ranges in GetPointerEvents
...
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-05 21:12:52 +01:00
Magnus Vigerlöf
12e5324032
dix: Always add valuator information if present
...
Send valuator information for all event types, not only for
MotionEvents and absolute button events.
2008-02-05 21:12:52 +01:00
Peter Hutterer
1692dcf197
dix: print out event type if a bogus pointer event occurs.
2008-01-30 13:04:58 +10:30
Eamon Walsh
7724c30a75
XACE: Stop using fake requestVectors in favor of a simple hook call.
2008-01-25 17:28:17 -05:00
Matthieu Herrb
8e133d9674
Fix for CVE-2008-0006 - PCF Font parser buffer overflow.
2008-01-17 15:29:06 +01:00
Kristian Høgsberg
a6a7fadbb0
Don't break grab and focus state for a window when redirecting it.
...
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-16 21:56:08 -05:00
Peter Hutterer
981bb9f1e3
dix: set the correct number of valuators in valuator events.
...
(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 9f6ae61ad1
)
2008-01-08 12:06:02 +10:30
Eamon Walsh
7f376f23db
devPrivates rework: Free callback lists after use.
2008-01-03 23:17:06 -05:00
Eamon Walsh
de18703d2a
dix: Fix bug+leak in callback manager DeleteCallbackList function.
2008-01-03 23:17:06 -05:00
Alan Coopersmith
895073f6b4
Restore include & typedef needed by dtrace
...
996b621bec
deleted a couple lines too many
2008-01-02 18:09:26 -08:00
Daniel Stone
24105cf658
Input: Don't reinit devices
...
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-28 15:51:36 +02:00
Jeremy Huddleston
42802a8e6b
Xquartz: General Cleanup
...
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 36922e8ff4
)
2007-12-20 13:18:17 -08:00
Eamon Walsh
97c82ce051
XACE: Restore the old background None behavior in response to bug #13683 .
...
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-17 23:12:01 -05:00
Bartosz Fabianowski
5b02a6ca5b
Input: Fix proximity events with valuators
...
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-14 13:15:26 +02:00
Eamon Walsh
c8feb73f58
Merge branch 'master' into XACE-SELINUX
...
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-13 18:38:25 -05:00
Adam Jackson
fa47910045
Clean up many #if 0.
2007-12-02 12:40:25 -05:00
Eamon Walsh
8503072e1c
registry: add missing include statement.
2007-11-26 16:54:33 -05:00
Eamon Walsh
996b621bec
registry: swap out the DTRACE XErrorDB stuff for the new registry call.
2007-11-26 15:59:44 -05:00
Eamon Walsh
54cb729ecc
registry: Add a call for DTRACE compatibility.
2007-11-26 15:59:01 -05:00
Eamon Walsh
decd5a7c60
registry: Rebase registry to use the server config file of protocol names.
2007-11-26 15:26:49 -05:00
Eamon Walsh
9b0e72c8d9
registry: Add a great big list of protocol names, like the XErrorDB that
...
ships with Xlib. This is considered temporary, until server-side XCB can
solve the problem programmatically.
2007-11-26 15:26:04 -05:00
Jeremy Huddleston
bcbaf2a0ce
Darwin: Dead code removal, Code cleanup, Added launcher
...
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-21 19:52:11 -08:00
Eamon Walsh
709c1a70c8
Remove some duplicate include statements.
2007-11-20 15:18:02 -05:00