Commit graph

5757 commits

Author SHA1 Message Date
Jerome Glisse
b03f9fa630 Xext: fix a typo for bigreqsproto.h header file
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
(cherry picked from commit 0e46066efe)
2009-09-01 09:29:24 -07:00
Jeremy Huddleston
545161ea9e Xext: Require newer versions of xcmiscproto, bigreqsproto, and xf86bigfontproto for new *proto.h header file names
bigreqsproto >= 1.1.0
xcmiscproto >= 1.2.0
xf86bigfontproto >= 1.2.0
2009-08-31 18:09:52 -07:00
Jeremy Huddleston
e1f97a7e31 1.5.3-apple15 2009-08-31 15:58:58 -07:00
Jeremy Huddleston
608581c3e9 mi: fix build error caused by missing xtest.h
xtest.h was renamed to xtestconst.h in xextproto.
Requires xextproto 7.0.99.3

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit 20daa145c4)
2009-08-31 15:58:18 -07:00
Jeremy Huddleston
5ae71e9c94 Use evieproto.h instead... 2009-08-31 11:23:20 -07:00
Peter Hutterer
c40d988b23 Xext: include securproto.h instead of securstr.h
Reported-by: Byeong-ryeol Kim
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit 4db8950b1d)
2009-08-31 11:21:54 -07:00
Jeremy Huddleston
fc792024f7 xext: Use proto header rather than the Xext include file, this prevents userspace being pulled in causing issues
Signed-off-by: Benjamin Close <Benjamin.Close@clearchain.com>
Acked-by: Peter Hutterer <peter.hutterer@who-t.net>
Acked-by: Daniel Stone <daniel@fooishbar.org>
(cherry picked from commit a38ca0063c)
2009-08-31 11:20:00 -07:00
Jeremy Huddleston
0f3a89d306 XQuartz: GL: Unset GL_EXT_gpu_program_parameters for Tiger/ppc
See http://trac.macports.org/ticket/20638
2009-08-27 16:21:11 -07:00
Jeremy Huddleston
7fe37137d8 XQuartz: GL: Explicitly set GL_EXT symbols to 0 if they are not in OpenGL.framework to prevent X11's glext.h from setting them to 1. 2009-08-27 11:04:00 -07:00
Peter Hutterer
f134395a82 Xext: fix up wrong conditions for negative sync transitions.
If the counter had a value higher than the trigger value for a negative
transition, the trigger value did not get set.

The correct sequence of checks is:
if (positive transition)
   if (counter value < trigger value)
      set up trigger
if (negative transition)
   if (counter value > trigger value)
      set up trigger

Red Hat Bug 501601 <https://bugzilla.redhat.com/show_bug.cgi?id=501601>

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit db568f9eab)
2009-08-25 20:51:36 -07:00
Jeremy Huddleston
203df06c0e XQuartz: Use applewmproto 1.4 updated headers. 2009-08-25 20:11:38 -07:00
Jeremy Huddleston
1755239330 XQuartz: Use internal xshm header for new xextproto 2009-08-24 12:36:24 -07:00
Adam Jackson
d8ae7e546f dbe: Adapt to new headers
(cherry picked from commit bb6fa39eb3)
2009-08-24 12:36:24 -07:00
Jeremy Huddleston
0a9f57c499 Update to xextproto 7.0.99.1.
xextproto had Xlib client headers moved into libXext.
Protocol header files are named fooproto.h, header files with constants
foo.h or fooconst.h where foo.h was already in use for client-side headers.
(cherry picked from commit d3f6b43a24)
2009-08-24 12:36:23 -07:00
Adam Jackson
2f08077533 xsync: Use a local header for server API definitions
(cherry picked from commit e0d8f6a808)
2009-08-24 12:36:23 -07:00
Jeremy Huddleston
0570adfe05 Sync is built-in and mandatory.
(cherry picked from commit f3ff238601)
2009-08-24 12:36:23 -07:00
Jeremy Huddleston
79ae3d47ed XC-MISC is built-in and mandatory.
(cherry picked from commit 3fcf4d3eb8)
2009-08-24 12:36:23 -07:00
Jeremy Huddleston
2b145ba81d Bigreqs are built-in and mandatory.
(cherry picked from commit f65c50c4e9)
2009-08-24 12:36:23 -07:00
Jeremy Huddleston
2fe86459cf Drop the FONTCACHE extension.
This appears to have been dead code since X-TT was merged.
(cherry picked from commit 0b45ba488d)
2009-08-24 12:36:23 -07:00
Jeremy Huddleston
725c24f046 XFree86: Remove XFree86-Misc extension
Its last remaining purpose in life has been destroyed by input
properties.  Au revoir: it's been fun, by which I mean awful.
(cherry picked from commit 22e64108ec)
2009-08-24 12:36:23 -07:00
Eamon Walsh
7e4572a571 Fix "warning: no previous prototype for ‘XevieExtensionInit’".
(cherry picked from commit 720e44f973)
2009-08-24 12:36:23 -07:00
Jeremy Huddleston
6b37231bc5 Death to TOG-CUP.
If you still care about 8bpp visuals that much, fix Composite to provide
synthetic visuals.
(cherry picked from commit a7503615a6)
2009-08-24 12:36:22 -07:00
Eric Anholt
0769b0d400 Nuke the MIT-SUNDRY-NONSTANDARD extension.
This extension provided bug-compatibility with pre-X11R6, but has been
stubbed out in our server since 2006 to return BadRequest when you actually
asked for it.
(cherry picked from commit 25827fde68)
2009-08-24 12:36:21 -07:00
Adam Jackson
95cfb2ce88 Death to Extended Visual Information.
(cherry picked from commit f6617b4127)
2009-08-24 12:36:21 -07:00
Jeremy Huddleston
36e02a8649 XQuartz: Check NSINTEGER_DEFINED to make sure the NSInteger and NSUInteger types are defined. 2009-08-09 16:13:32 -07:00
Jeremy Huddleston
b64310e3a4 1.5.3-apple14 2009-08-05 20:27:43 -07:00
Jeremy Huddleston
b608c864cc CheckWindowOptionalNeed: Ensure w->optional is set to avoid SEGFAULT
If CheckWindowOptionalNeed is called consecutively (and the first removes optional), then
we will SEGFAULT.  This can happen in XQuartz because ReparentWindow will call
pScreen->ReparentWindow which can DeleteProperty which will CheckWindowOptionalNeed... then
ReparentWindow will call it again later indiscriminantly.
2009-08-05 17:43:29 -07:00
Jeremy Huddleston
60a1d2c276 XQuartz: AIGLX: Provide empty __glXAquaDrawableResize to avoid crashing in DoMakeCurrent 2009-08-04 02:53:17 -07:00
Jeremy Huddleston
552be074e5 XQuartz: Only save lastpt on mouse/tablet events 2009-08-01 22:53:45 -07:00
Jeremy Huddleston
65ae2d00e1 XQuartz: Use mouseLocation rather than locationInWindow when setting lastpt
I don't understand the *why* ... I just see that it works better this way for games like Quake2 through wine.  It *should* be better the other way, but somehow it's not.

I guess this will go in my list of puzzles to unravel.
2009-08-01 12:43:14 -07:00
Jeremy Huddleston
6c5bf756a7 XQuartz: Don't use location delta for tablets since NSEvent does not give a precise delta. 2009-08-01 02:32:52 -07:00
Jeremy Huddleston
518ad47dec 1.5.3-apple13 2009-08-01 01:09:31 -07:00
Jeremy Huddleston
de14a63d20 XQuartz: Purge redundant QuartzBell 2009-07-31 16:09:50 -07:00
Jeremy Huddleston
c230b52c27 XQuartz: Unify how we set our bitmasks for visuals 2009-07-31 15:32:07 -07:00
Jeremy Huddleston
6c9dd6c258 Revert "XQuartz: Let miSetVisualTypes set the mask, since we are using the default anyways."
This reverts commit c850b6109c.

I lied... we're nativelt ARGB, not ABGR
2009-07-31 15:04:25 -07:00
Jeremy Huddleston
e457a44e87 XQuartz: Dead code removal for StaticColor visual 2009-07-31 14:19:50 -07:00
Jeremy Huddleston
d32c3df258 XQuartz: Cleanup the bitmask setting for GLX visuals. 2009-07-31 14:14:21 -07:00
Jeremy Huddleston
c850b6109c XQuartz: Let miSetVisualTypes set the mask, since we are using the default anyways. 2009-07-31 13:40:21 -07:00
Jeremy Huddleston
df2fbc410f XQuartz: no DirectColor 2009-07-30 01:30:52 -07:00
Jeremy Huddleston
1133473812 XQuartz: Define DDXRingBell 2009-07-30 00:51:55 -07:00
Jeremy Huddleston
6edce6947b XQuartz: Avoid a possible spinlock in applicationWillTerminate
(cherry picked from commit f430cda0fd)
2009-07-28 22:53:14 -07:00
Jeremy Huddleston
3a42b274ad XQuartz: Avoid namespace collission for BOOL in Sparkle
(cherry picked from commit 227c6e01a6)
2009-07-28 22:53:07 -07:00
Keith Packard
c83e842d62 Build against DRI_TEX_BUFFER_VERSION 1
setTexBuffer2 isn't present in this version of the structure, so don't try
to call it.

Signed-off-by: Keith Packard <keithp@keithp.com>
(cherry picked from commit a7a93c12f9)
2009-07-26 12:33:14 -07:00
Kristian Høgsberg
e34a12b18f Support setTexBuffer2 in AIGLX.
Fixes broken GLX_tfp, specifically, lets compositors ignore un-defined
alpha channel for pixmaps.
(cherry picked from commit 91b697efde)
2009-07-26 12:32:48 -07:00
Ian Romanick
ee6ce7e4cc glx: Inialize best_score before calculating visual scores
This bug was pointed out by Peter Åstrand.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
(cherry picked from commit 4039603413)
2009-07-26 12:25:50 -07:00
Alan Hourihane
5cae7f5a60 glx: fix retval checks when failures occur for drawable creation.
(cherry picked from commit a26c77ff43)
2009-07-26 12:25:39 -07:00
Eric Anholt
0fd4d26240 glx: Replace broken GLX visual setup with a fixed "all" mode.
With trying to match depths so that you didn't end up with a depth 24
fbconfig for the 32-bit composite visual, I broke the alpha bits on the depth
24 X visual, which angered other applications.  But in fixing that, the
pickFBconfigs code for "minimal" also could end up breaking GLX visuals if
the same FBconfig was chosen for more than one X visual.
We have no reason to not expose as many visuals as possible, but the old
"all" mode didn't match any existing X visuals to GLX visuals, so normal
GL apps didn't work at all.

Instead, replace it with a simple combination of the two modes: Create GLX
visuals by picking unique FBconfigs with as many features as possible for
each X visual in order.  Then, for all remaining FBconfigs that are
appropriate for display, add a corresponding X and GLX visual.

This gets all applications (even ones that aren't smart enough to do FBconfigs)
get all the options to get the visual configuration they want.  The only
potential downside is that the composite ARGB visual is unique and gets a
nearly full-featured GLX visual (except that the root visual might have taken
the tastiest FBconfig), which means that a dumb compositing manager could
waste resources. Write compositing managers using FBconfigs instead, please.
(cherry picked from commit c40bad88475debf7a1774e22dce835577ad32154)

Signed-off-by: Keith Packard <keithp@keithp.com>
(cherry picked from commit 516f8e2cad)
2009-07-26 12:25:11 -07:00
Eric Anholt
7f9df0c932 glx: Don't match fbconfigs to visuals with mismatched channel masks.
This fixes at least one known bug, where the depth 32 visual would end up
with a depth 24 fbconfig attached, angering compiz.
(cherry picked from commit 5100d829a4)
2009-07-26 12:24:52 -07:00
Jeremy Huddleston
cf9675c41a XQuartz: Overhaul setting up visuals
The main change is cleanup of the visualConfigs and setting up alpha correctly there to match the visuals being added earlier (so the default visual has a corresponding GLX visual)
(cherry picked from commit 7351db5c87)
2009-07-26 02:35:22 -07:00
Jeremy Huddleston
c83f701aa7 XQuartz: Bump the reported version to X11R7.4 2009-07-25 15:21:12 -07:00