Commit Graph

3921 Commits

Author SHA1 Message Date
Ben Byer
4aedba5aa7 just a bit of juggling headers around -- we're preparing
to call our Xquartz-specific event handlers directly
as mieqHandlers
2008-03-31 21:34:03 -07:00
Ben Byer
1e0ec02202 nuke DarwinEventQueue 2008-03-31 21:33:57 -07:00
Ben Byer
c34fce7051 continue with gutting darwinEvents.c 2008-03-31 21:33:50 -07:00
Ben Byer
bfec44d7b4 turns out we weren't actually using these files. oops 2008-03-31 21:33:45 -07:00
Ben Byer
a25704c423 remove vestigal DarwinEQPointerPost etc 2008-03-31 21:33:36 -07:00
Ben Byer
a9e081a60c gut darwinEQEnqueue, and make it just call mieqEnqueue (for the moment) 2008-03-31 21:33:29 -07:00
Ben Byer
9a03ae33c4 add prototype for DarwinEventHandler 2008-03-31 21:33:22 -07:00
Ben Byer
5848510cc5 add logging of current thread ID to DEBUG_LOG macro 2008-03-31 21:33:11 -07:00
Ben Byer
3f4447b95f Begin to move all of our Xquartz DDX-specific event handlers
to miEQ, in preparation to remove the DDX-specific code entirely.
2008-03-31 21:33:05 -07:00
Ben Byer
135eb27bce Add code to track 5 valuators for pointing device, in preparation
for supporting tablet input in Xquartz.
2008-03-31 21:32:35 -07:00
Ben Byer
a6c8fbc818 add debug statements so we can see if/when our Xinput stubs are getting called. 2008-03-31 21:32:19 -07:00
Ben Byer
8b5737b3cf Remove calls to InitValuatorAxisStruct -- these are now handled in dix by
InitValuatorDeviceClass.
Add InitProximityClassDeviceStruct call to prepare for tablet support.
2008-03-31 21:32:09 -07:00
Jeremy Huddleston
a28b8c23d9 XQuartz: Fixed names of enums to be more consistent 2008-03-31 21:31:54 -07:00
Jeremy Huddleston
cc17ce1b73 XQuartz: Another Exposé fix: F9 doesn't raise all windows
(cherry picked from commit b9cffa20de)
2008-03-31 21:31:48 -07:00
Jeremy Huddleston
f57a2f38ee XQuartz: Sanity-check the removal of the 256-color option
Fixes the 'one-time-preferences' bug in 2.2.0_rc1
(cherry picked from commit 38cbd13490)
2008-03-31 21:31:35 -07:00
Ben Byer
de722e2fea xquartz: copy in new stubs from Xi/stubs.c to replace our old
Xinput stubs.  Hey, it's a start.
2008-03-31 21:31:34 -07:00
Ben Byer
d34ff74c3c prevent "fake mouse clicks" from generating spurious extra events 2008-03-31 21:31:27 -07:00
Jeremy Huddleston
98b5f373e6 XQuartz: Disable 256 color option and fullscreen option
(cherry picked from commit 7c1964338a)
2008-03-21 19:35:02 -07:00
Jeremy Huddleston
f06a7ae344 Xquartz: Added separate preference tab for quartz-wm settings
Added FFM and "Focus on new window" options
(cherry picked from commit 6841d078b7)
2008-03-21 19:34:57 -07:00
Jeremy Huddleston
6fc293182f XQuartz: Initial framework for dealing with spaces on OS-X
(cherry picked from commit 9831324998)
2008-03-21 19:34:51 -07:00
Jeremy Huddleston
f03202ad15 Rootless: Removed safeAlphaXXXX() in favor of using fb/pixman 2008-03-17 23:57:41 -07:00
Jeremy Huddleston
509827a598 Merge branch 'server-1.4-branch' into xorg-server-1.4-apple 2008-03-01 17:10:42 -08:00
Alan Hourihane
a65d4aed06 Fix context sharing between direct/indirect contexts 2008-02-27 16:53:52 +00:00
Jeremy Huddleston
f91c915903 XQuartz: Quit now properly warns the user
(cherry picked from commit ed3d7b3959)
2008-02-23 00:28:38 -08:00
Matthias Hopf
44f46bfb98 CVE-2007-6429: Always test for size+offset wrapping. 2008-02-20 22:17:42 +01:00
Kristian Høgsberg
bcbfd619f8 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-02-20 22:15:11 +01:00
Maarten Maathuis
dc30ade649 Fix rotation for multi-monitor situation.
- The (x,y)-coordinates of the crtc were not being passed as xFixed values, which made it an obscure bug to find.
- Fix bug #13787.
(cherry picked from commit a48cc88ea2)
2008-02-19 21:58:26 +02:00
Maarten Maathuis
3db5930c61 Resize composite overlay window when the root window changes.
- This allows some compositing managers to work, even after randr12 has changed the root window size.
- Thanks to ajax for figuring out the best place to put this.
- Example:
	- xf86RandR12SetMode() calls EnableDisableFBAccess().
	- That calls xf86SetRootClip() which in turn calls ResizeChildrenWinSize().
	- The final step is the call to PositionWindow().
(cherry picked from commit 70c0592a97)
2008-02-19 21:58:21 +02:00
Jeremy Huddleston
04a09e9271 XQuartz: unsetenv("DISPLAY") before startx if X11.app can't connect to it.
Also fix casting to silence warning.
(cherry picked from commit a5cbf78471)
2008-02-19 00:01:52 -08:00
Jeremy Huddleston
70f9495e0c Added Xquartz.plist to EXTRA_DIST 2008-02-16 01:33:13 -08:00
Jeremy Huddleston
c3e87251b8 Fixed unescaped newline in EXTRA_DIST
(cherry picked from commit 567c172c4d)
2008-02-16 01:00:35 -08:00
Jeremy Huddleston
e079e40319 XQuartz: Fixed EXTRA_DIST to include localization
(cherry picked from commit 1b338c2a93)
2008-02-15 23:18:22 -08:00
Jeremy Huddleston
a4069c94a6 1.4.0-apple1 2008-02-15 23:16:11 -08:00
Eamon Walsh
74b40bba32 security: Fix for Bug #14480: untrusted access broken in 7.3. 2008-02-14 19:47:44 -05:00
Jeremy Huddleston
1b22192e50 Merge branch 'server-1.4-branch' into xorg-server-1.4-apple 2008-02-13 23:48:02 -08:00
Jeremy Huddleston
b3eabf13af XQuartz: Fixed layout of Applications->Customize menu
Now resizing it won't produce weir overlaps of the widgets.  Thanks to
Pelle Johansson for his help showing me how to do this.
(cherry picked from commit ef3498e92d)
2008-02-11 12:10:55 -08:00
Jeremy Huddleston
407f7fec88 XQuartz: Added option for setting quartz-wm click-through preference
(cherry picked from commit bf54c267cb)
2008-02-10 18:30:34 -08:00
Jeremy Huddleston
fb52ef7c86 XQuartz: Converted interface to nib 3.x format
(cherry picked from commit 656aaab957)
2008-02-10 18:30:28 -08:00
Peter Hutterer
bc72ef3a15 xkb: don't update LEDs if they don't exist. (Bug #13961)
In some weird cases we call this function when there is no SrvLedInfo on the
device. And it turns out null-pointer dereferences are bad.

X.Org Bug 13961 <http://bugs.freedesktop.org/show_bug.cgi?id=13961>
(cherry picked from commit d954f9c803)
2008-01-31 11:39:10 +11:00
Peter Hutterer
e98027c3ac 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-29 14:46:30 +11:00
Jeremy Huddleston
b6aa41b56b Rootless: RootlessEnsureFrame: Added check for !IsRoot
This was causing an issue with Apple-DRI and was reported here:
http://trac.macosforge.org/projects/xquartz/ticket/51
(cherry picked from commit 116800279d)
2008-01-28 12:25:24 -08:00
Adam Jackson
b6d4cdf64f CVE-2007-6429: Don't spuriously reject <8bpp shm pixmaps.
Move size validation after depth validation, and only validate size if
the bpp of the pixmap format is > 8.  If bpp < 8 then we're already
protected from overflow by the width and height checks.
(cherry picked from commit e9fa7c1c88)
2008-01-18 21:01:32 +01:00
Jeremy Huddleston
d6e234f96d Merge branch 'server-1.4-branch' into xorg-server-1.4-apple 2008-01-17 09:48:14 -08:00
Matthieu Herrb
19b95cdd1d Fix for CVE-2007-5958 - File existence disclosure. 2008-01-17 17:03:39 +01:00
Matthieu Herrb
f09b8007e7 Fix for CVE-2008-0006 - PCF Font parser buffer overflow. 2008-01-17 17:02:52 +01:00
Matthieu Herrb
8b14f7b742 Fix for CVE-2007-6429 - MIT-SHM and EVI extensions integer overflows. 2008-01-17 17:02:36 +01:00
Matthieu Herrb
d244c8272e Fix for CVE-2007-6427 - Xinput extension memory corruption. 2008-01-17 17:02:04 +01:00
Matthieu Herrb
4848d49d05 Fix for CVE-2007-6428 - TOG-cup extension memory corruption. 2008-01-17 17:00:22 +01:00
Matthieu Herrb
59a3b83922 Fix for CVE-2007-5760 - XFree86 Misc extension out of bounds array index 2008-01-17 17:00:06 +01:00
Daniel Stone
636aa9e7be Xephyr: One-time keyboard leak fix
Don't leak the originally-allocated keysym map.
(cherry picked from commit e85130c85f)
2008-01-17 18:43:30 +11:00