Peter Hutterer
8f9bf927e1
xkb: Unwrap properly in ProcessPointerEvent.
...
Instead of hardcoding CoreProcessPointerEvent, actually try to unwrap properly
and then call the unwrapped processInputProc. Seems to be a better idea,
especially since it makes stuff actually work...
2007-09-26 18:04:59 +09:30
Peter Hutterer
3342b5ad47
Xi: fix the wrapper code for processInputProc wrapping.
...
Followup to [1].
If a core grab causes the device to freeze, it overwrites the processInputProc
of the device. [1] would then overwrite this while unwrapping, the device
does not thaw anymore.
Changing this to only re-wrap if the processInputProc hasn't been changed
during the event handling.
[1] 340911d724
2007-09-26 18:03:21 +09:30
Peter Hutterer
e2cb851566
xfree86: pass in the XKB event processing proc instead of the XI one.
...
We need to pass ProcessPointerEvent or ProcessKeyboardEvent to
XkbSetExtension, otherwise we lose the xkb layer.
2007-09-26 18:01:17 +09:30
Peter Hutterer
27bc1a8fef
xkb: XkbFilterEvents: Remove unused variable compiler warning.
2007-09-26 15:24:41 +09:30
Peter Hutterer
bfc89c0355
xkb: unify ErrorFs. Prefix all with [xkb].
...
Output for XkbUseMsg intentionally skipped.
2007-09-26 15:23:37 +09:30
Peter Hutterer
8b508f5d6b
dix: unify ErrorFs. prepend all with [dix].
2007-09-26 15:19:53 +09:30
Peter Hutterer
394f3c1dbe
dix: GetPointerEvents: remove unused variable compiler warning.
2007-09-26 15:19:37 +09:30
Peter Hutterer
55fd50273e
Xi: unify ErrorFs. Prefix all with [Xi].
2007-09-26 15:15:34 +09:30
Peter Hutterer
340911d724
Wrap core event handling through ProcessOtherEvents.
...
When processing events from the EQ, _always_ call the processInputProc of the
matching device. For XI devices, this proc is wrapped in three layers.
Core event handling is wrapped by XI event handling, which is wrapped by XKB.
A core event now passes through XKB -> XI -> DIX.
This gets rid of a sync'd grab problem: with the previous code, core events
did disappear during a sync'd device grab on account of mieqProcessInputEvents
calling the processInputProc of the VCP/VCK instead of the actual device. This
lead to the event being processed as normal instead of being enqueued for
later replaying.
2007-09-26 15:12:49 +09:30
Peter Hutterer
b2a4883bd8
dix: add comments to PlayReleasedEvents()
...
Also stick another warning in, more changes needed for XGE if panoramix is
active.
2007-09-26 09:20:11 +09:30
Peter Hutterer
275dc77c29
dix: add comments to ComputeFreezes() and syncEvents struct.
2007-09-26 09:14:50 +09:30
Tilman Sauerbeck
ae8b4f7dcf
EXA: Added pitch limitations.
...
Drivers can now specify the max pitches that the accelerator supports.
2007-09-25 16:43:06 +02:00
Eamon Walsh
b61461425e
xace: add hooks + new access codes: XV extension.
...
May need to revisit this extension in the future, depending on observed use.
2007-09-25 09:56:00 -04:00
Eamon Walsh
9bd04055a2
xace: change prototype of VALIDATE_DRAWABLE_AND_GC macro to allow access
...
mode to be passed to dixLookupDrawable.
2007-09-25 09:33:51 -04:00
Eric Anholt
988f446fe0
[EDID] Ignore reserved bits in deciding monitor vs detailed timing descriptor.
...
Even though they're defined to zero by the spec, we've seen an EDID block
where the (empty) ASCII strings were stuffed in a byte early, leading to the
descriptor being considered a detailed timing instead.
2007-09-24 20:26:31 -07:00
Peter Hutterer
5d9f6cf51b
dix: cosmetic change. Remove "pointer" variable, might as well use pDev.
2007-09-24 12:38:11 +09:30
Peter Hutterer
c4db4d1fcf
include: remove register keywords.
2007-09-24 12:37:59 +09:30
Peter Hutterer
1c25c46f3d
dix: fix compiler warnings about unused variables.
2007-09-24 12:37:33 +09:30
Peter Hutterer
68e0c4988e
dix: fix "possible use of uninitialized variable" warning.
...
The device passed through to UnrealizeCursor isn't used anyway, so setting it
to NULL is enough.
2007-09-24 12:21:05 +09:30
Peter Hutterer
b484451eab
dix: don't try to access "time" field for GenericEvents in PlayReleasedEvent.
...
GenericEvents can't be parsed to keyButtonPointer, and there's no guarantee
that it has a time field anyway. PlayReleasedEvent needs to store the millis
when we know it (core events, XI event) and just re-use them for GenericEvents.
Yes, this is a hack. But it looks like the time has zero significance anyway.
2007-09-24 12:20:45 +09:30
Peter Hutterer
1c38eac442
dix: fix comment for DeliverDeviceEvents.
...
DDE is not always called, grabbed or focused devices go through
Deliver{Grabbed|Focus}Event first.
Thanks to Eamon Walsh for spotting it.
2007-09-24 12:15:53 +09:30
Peter Hutterer
06188ce90d
dix: Make EnqueueEvent aware of GenericEvents.
...
GenericEvents can be > sizeof(xEvents), so we need to make sure we're
allocating and copying enough memory for the event.
2007-09-24 12:15:12 +09:30
Peter Hutterer
8840829ab9
dix: don't compress motion events from different devices (EventEnqueue)
2007-09-24 12:02:26 +09:30
Daniel Stone
27ad5d74c2
Input: Generate XKB mapping changes for all core-sending devices (bug #12523 )
...
When we change the mapping on a core device, make sure we propagate this
through to XKB for all extended devices as well.
2007-09-23 17:17:20 +03:00
Daniel Stone
0e800ca465
GetKeyboardEvents: Reject out-of-range keycodes (bug #12528 )
...
We can only deal with keycodes between 8 and 255, so make sure that we never
accept anything out of this range.
2007-09-23 12:43:31 +03:00
Alex Deucher
e1860f241b
Document xf86_crtc_clip_video_helper better.
2007-09-22 17:54:51 -04:00
Alex Deucher
19d30c1c77
Revert "Fix possible crash if Xv window is outside of either crtc"
...
This reverts commit 9235531410
.
This changes ABI. False means there was a memory failure of some kind,
not that the video shouldn't be displayed
2007-09-22 17:51:27 -04:00
Michel Dänzer
9235531410
Fix possible crash if Xv window is outside of either crtc
2007-09-22 14:25:02 -04:00
Tilman Sauerbeck
edd8817083
EXA: Check ABI compatibility earlier.
...
If the driver isn't compatible to the server, all bets are off anyway wrt
the contents of the fields that we're validating, which can lead to bogus
error messages.
2007-09-22 13:52:56 +02:00
Ben Byer
abe0a51f3f
So, like, checking return codes of system calls (signal, etc) is good.
...
Also, only restore an old signal handler if one was actually set
(prevents the server from dying on OS X).
2007-09-21 17:07:36 -07:00
Ben Byer
eb82b19aa7
XDarwin: build fix for X11.app
2007-09-20 19:55:48 -07:00
Ben Byer
5b08932bfb
XDarwin: pulling in Indirect GLX fixes from downstream
2007-09-20 19:27:31 -07:00
Ben Byer
742d5d6adc
XDarwin: Fixes to quartzKeyboard.c to prevent a crash using certain non-US keyboards
2007-09-20 18:03:51 -07:00
Ben Byer
374bd88d10
XDarwin: Merging misc changes from downstream.
...
The only functional changes in this patch are a removal of use of
Xtrans internals -- replaced by xcb, which doesn't seem to be used
elsewhere in the server? Pity.
Also, a fix to make all X11 windows pop to the front of the display
when the X11.app icon is clicked -- currently takes two clicks,
not sure why.
2007-09-20 16:51:06 -07:00
Aaron Plattner
3a965fdadc
Don't segfault on shutdown if we never managed to connect to dbus.
2007-09-20 16:22:24 -07:00
Aaron Plattner
50fa8722d3
Set noCompositeExtension to TRUE when failing to initialize the extension (e.g. when Xinerama is enabled).
2007-09-20 14:00:33 -07:00
Eamon Walsh
a247886b08
xace: add hooks + new access codes: XF86-Bigfont extension
2007-09-20 13:06:38 -04:00
Eamon Walsh
f6532a81ee
xace: add hooks + new access codes: APPGROUP extension
2007-09-20 12:17:17 -04:00
Eamon Walsh
82f7195a62
xace: modifications to ChangeWindowAttributes special case: separate
...
Receive and SetAttr. Refer to 963e69b8ef
2007-09-20 09:17:09 -04:00
Eamon Walsh
661b1328cf
xace: add hooks + new access codes: SYNC extension
...
May need to revisit this extension in the future, depending on observed use.
2007-09-20 09:14:09 -04:00
Eamon Walsh
90bacdef72
xace: add hooks + new access codes: MIT-SHM extension
2007-09-20 06:53:51 -04:00
David Nolden
12a18cc890
compilation-fix in debug mode
2007-09-20 15:23:19 +09:30
Eamon Walsh
e93cff52fe
xace: add hooks + new access codes: DOUBLE-BUFFER extension
2007-09-19 14:48:20 -04:00
Eamon Walsh
082c0f7fb3
devPrivates rework: move devPrivates field in drawable structure types
...
to just below the DrawableRec. Wish there were a better way to do this
but it has to be in the same place for all drawable types.
2007-09-19 13:59:35 -04:00
Eamon Walsh
5b36b64192
xace: add missing argument to hook call.
2007-09-19 11:11:54 -04:00
Eamon Walsh
963e69b8ef
xace: add special-case for just setting the event mask on a window,
...
this should only check "receive" permission, not "setattr" permission.
2007-09-19 11:11:41 -04:00
Ben Byer
c140d20f4a
XDarwin: mass change from using xorg-config.h to dix-config.h cuz we're not using the X.org ddx anymore
2007-09-19 05:58:22 -07:00
Ben Byer
bcb5e3e627
XDARWIN: More fixes to Makefile.am
...
At least on my system (10.5 with the latest and greatest modules),
Xquartz now builds out of the box. It doesn't quite work yet, but
hey -- you have to start somewhere. ;)
2007-09-19 04:46:10 -07:00
Eamon Walsh
97c150b61b
Merge branch 'master' into XACE-SELINUX
...
Conflicts:
afb/afbpntwin.c
afb/afbscrinit.c
afb/afbwindow.c
cfb/cfb.h
cfb/cfballpriv.c
cfb/cfbscrinit.c
cfb/cfbwindow.c
configure.ac
fb/wfbrename.h
hw/xfree86/xf4bpp/ppcIO.c
hw/xfree86/xf4bpp/ppcPntWin.c
hw/xfree86/xf4bpp/ppcWindow.c
hw/xfree86/xf8_32bpp/cfbscrinit.c
mfb/mfb.h
mfb/mfbpntwin.c
mfb/mfbscrinit.c
mfb/mfbwindow.c
mi/miexpose.c
Note: conflicts caused by devPrivates rework vs. paintwindow changes.
2007-09-19 07:25:55 -04:00
Ben Byer
5e209b21f3
XNEST: removed obsolete hack to build under Darwin
2007-09-19 03:44:46 -07:00