Commit graph

7266 commits

Author SHA1 Message Date
Jeremy Huddleston
5be60933b7 XQuartz: Use --with-launchd-id-prefix for consistency with xinit
Also actually honor LAUNCHD_ID_PREFIX and APPLE_APPLICATION_NAME
(cherry picked from commit 990038ab00)
2009-09-04 00:42:10 -07:00
Jerome Glisse
ffd0cffd27 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
22e5bd377c 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:11:46 -07:00
Jeremy Huddleston
28bb411360 1.6.3-apple1 2009-08-31 17:25:27 -07:00
Jeremy Huddleston
da64006eb5 Merge commit 'origin/server-1.6-branch' into xorg-server-1.6-apple 2009-08-31 17:14:04 -07:00
Jeremy Huddleston
7dcb9b1bac 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:08 -07:00
Jeremy Huddleston
1e642f22fb XQuartz: GLX: Drawable does not contain resize anymore. 2009-08-31 15:53:58 -07:00
Peter Hutterer
9466e30e45 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:57 -07:00
Benjamin Close
f6b0dd98e6 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:19:32 -07:00
Jeremy Huddleston
912642d6ae XQuartz: GL: Unset GL_EXT_gpu_program_parameters for Tiger/ppc
See http://trac.macports.org/ticket/20638
(cherry picked from commit 0f3a89d306)
2009-08-31 07:45:46 -07:00
Jeremy Huddleston
0b0f66b66a 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.
(cherry picked from commit 7fe37137d8)
2009-08-31 07:45:37 -07:00
Keith Packard
3044711412 Bump version to 1.6.3.901 (1.6.4 RC1)
Signed-off-by: Keith Packard <keithp@keithp.com>
2009-08-25 22:37:16 -07:00
Keith Packard
d8e48deb21 Block signals while delivering XTest events (fixes bug 23100)
XTest uses the same event list as all input devices, and input devices
use it at SIGIO time. This causes mass confusion when a SIGIO event
occurs in the middle of XTest event processing.

The master branch has a much different fix, using a separate input
queue which reduces latency that may be caused by XTest event queuing;
it's a 'nicer' fix in some ways, but this simple fix should solve the
problem.

Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Keith Packard <keithp@keithp.com>
2009-08-25 22:29:25 -07:00
Jeremy Huddleston
def28e7072 Merge commit 'origin/server-1.6-branch' into xorg-server-1.6-apple 2009-08-25 20:57:16 -07:00
Jeremy Huddleston
c232ee0e66 XQuartz: Use applewmproto 1.4 updated headers.
(cherry picked from commit 203df06c0e)
2009-08-25 20:26:28 -07:00
Jeremy Huddleston
697be460d0 XQuartz: Use internal xshm header for new xextproto
(cherry picked from commit 1755239330)
2009-08-25 20:26:14 -07:00
Adam Jackson
4fc1b920af dbe: Adapt to new headers
(cherry picked from commit bb6fa39eb3)
2009-08-25 20:26:05 -07:00
Jeremy Huddleston
369326c96d 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-25 20:25:55 -07:00
Adam Jackson
3af4b6fe23 xsync: Use a local header for server API definitions
(cherry picked from commit e0d8f6a808)
2009-08-25 20:22:08 -07:00
Jeremy Huddleston
c46bfe10bf XQuartz: Check NSINTEGER_DEFINED to make sure the NSInteger and NSUInteger types are defined.
(cherry picked from commit 36e02a8649)
2009-08-25 20:17:38 -07:00
Jeremy Huddleston
238d280f85 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.
(cherry picked from commit b608c864cc)
2009-08-25 20:15:40 -07:00
Keith Packard
76a1839b0a Ensure that rotation updates happen frequently
The smart scheduler is designed to minimize scheduler overhead by
increasing the interval between WaitForSomething calls when a single
client is running. However, the software rotation code depends on
its BlockHandler being invoked for screen updates; the long delays
caused by the smart scheduler optimizations means that screen updates
can be delayed a long time as well.

The change is simple -- prevent the smart scheduler from increasing
the scheduling interval while any screen is using software rotation.
(cherry picked from commit e7dd1efef4)

Signed-off-by: Keith Packard <keithp@keithp.com>
2009-08-25 20:12:17 -07:00
Keith Packard
31dc4fe0be Perform rotation redisplay before calling driver block handler (which may flush rendering)
The rotation block handler uses regular driver rendering functions to
repaint the screen, if those functions queue commands in the driver,
it's important that the driver block handler be invoked after the
rotated image is drawn.

Signed-off-by: Keith Packard <keithp@keithp.com>
(cherry picked from commit 1740cda7a3)
2009-08-25 20:12:17 -07:00
Keith Packard
cebc0a7aa7 xf86_reload_cursors: fix cursor position to eliminate jumping after mode set
xf86_reload_cursors restores the cursor to the correct position, but
that must adjust for cursor hot spot and frame before calling down to
the hardware function, otherwise the cursor jumps to the wrong
position until it is repositioned by the user.

Signed-off-by: Keith Packard <keithp@keithp.com>
(cherry picked from commit 4aab05e3b3)
2009-08-25 20:12:17 -07:00
Michel Dänzer
5848fca11f glx: Clean up more thoroughly if the drawable of a current context goes away.
Fixes crash when restarting compiz, due to cl->currentContexts[x] being stale.
(cherry picked from commit 3020b1d43e)
2009-08-25 20:12:17 -07:00
Michel Dänzer
fad2de1cca glx: If a destroyed window is bound to the current context, make it not current.
Avoids subsequent crashes due to stale pointers to the DrawableRec, see
https://bugs.freedesktop.org/show_bug.cgi?id=21132#c15 and previous comments.

Signed-off-by: Michel Dänzer <daenzer@vmware.com>
(cherry picked from commit 2075d4bf9e)
2009-08-25 20:12:17 -07:00
Richard Hughes
a32d717ac6 Do not reset lastDeviceEventTime when we do dixSaveScreens
When we turn off DPMS with DPMSModeOff and do dixSaveScreens, don't reset the
event time else session clients using IDLETIME will be reset.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit 6b5978dcf1)
2009-08-25 20:12:16 -07:00
Peter Hutterer
32115e690f dix: update the sprite trace for all masters && floating slaves (#23257)
When the windows are restructured, CheckMotion needs to be called for all
masters and floating slaves to update the spriteTrace.

X.Org Bug 23257 <http://bugs.freedesktop.org/show_bug.cgi?id=23257>
(cherry picked from commit 6c292d1705)

Tested-by: Thomas Jaeger
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Keith Packard <keithp@keithp.com>
2009-08-25 20:12:02 -07:00
Dan Nicholson
af7e62a913 xfree86: Link libselinux with Xorg system libraries
Put the reference to -lselinux in XORG_SYS_LIBS so it isn't added as a
make dependency for libxorg.la. Otherwise, make goes looking for a file
-lselinux in the current directory, which it obviously won't find.

Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
Tested-by: Justin P. Mattock <justinmattock@gmail.com>
(cherry picked from commit c73cd3b265)
2009-08-25 19:46:55 -07:00
Peter Hutterer
397f7c42cd config: don't shutdown the libhal ctx if it failed to initialize (#23213)
Regression introduced by b1c3dc6ae2.
Shutting down the libhal_ctx if the init failed may cause an abort.
This can happen if hald is not yet running at server startup.

X.Org Bug 23213 <http://bugs.freedesktop.org/show_bug.cgi?id=23213>

Tested-by: Stefan Dirsch
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit 49046088f1)
2009-08-25 19:46:15 -07:00
Peter Hutterer
55c26d8e4d 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 19:45:36 -07:00
Jeremy Huddleston
f37a5f5479 XQuartz: AIGLX: Provide empty __glXAquaDrawableResize to avoid crashing in DoMakeCurrent
(cherry picked from commit 60a1d2c276)
2009-08-05 16:17:43 -07:00
Jeremy Huddleston
a7b1c99aca XQuartz: Only save lastpt on mouse/tablet events
(cherry picked from commit 552be074e5)
2009-08-05 16:17:32 -07:00
Jeremy Huddleston
cf5d382563 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.
(cherry picked from commit 65ae2d00e1)
2009-08-05 16:17:21 -07:00
Jeremy Huddleston
c9cc8f2e3f XQuartz: Don't use location delta for tablets since NSEvent does not give a precise delta.
(cherry picked from commit 6c5bf756a7)
2009-08-05 16:16:26 -07:00
Jeremy Huddleston
b88623502b XQuartz: Purge redundant QuartzBell
(cherry picked from commit de14a63d20)
2009-08-05 16:16:12 -07:00
Jeremy Huddleston
1bec11c732 Merge commit 'origin/server-1.6-branch' into xorg-server-1.6-apple 2009-08-05 16:15:58 -07:00
Keith Packard
f274e595ed Bump release number to 1.6.3
Signed-off-by: Keith Packard <keithp@keithp.com>
2009-07-31 23:37:53 -07:00
Jeremy Huddleston
869e60d2ce XQuartz: Unify how we set our bitmasks for visuals
(cherry picked from commit c230b52c27)
2009-07-31 15:33:46 -07:00
Jeremy Huddleston
1c983175f6 XQuartz: Dead code removal for StaticColor visual
(cherry picked from commit e457a44e87)
2009-07-31 15:33:40 -07:00
Jeremy Huddleston
ec16bf8ee5 XQuartz: Cleanup the bitmask setting for GLX visuals.
(cherry picked from commit d32c3df258)
2009-07-31 15:33:34 -07:00
Jeremy Huddleston
536acc25ee XQuartz: no DirectColor
(cherry picked from commit df2fbc410f)
2009-07-31 15:33:28 -07:00
Jeremy Huddleston
01a1b79e98 XQuartz: Define DDXRingBell
(cherry picked from commit 1133473812)
2009-07-31 15:33:21 -07:00
Alan Coopersmith
55dcfdbbd6 Remove hardcoded gcc -Wall option from configure.ac
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
(cherry picked from commit 442967c90d)
2009-07-29 15:51:08 -07:00
Adam Jackson
4d349b6c33 selinux: Only activate if policy says to be an object manager
(cherry picked from commit 283a081572)
2009-07-29 15:50:06 -07:00
Ben Skeggs
d0875154f4 quirk: use first detailed timing as preferred for PEA prod 9003 (rh#492359)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit 048697ccfa)
2009-07-29 15:49:52 -07:00
Rémi Cardona
c941479ecc config: add HAL error checks
This patch simplifies error handling in the HAL code and fixes a
segfault if libhal_find_device_by_capability() failed.

Fixes http://bugs.gentoo.org/278760

Based on a patch by Martin von Gagern <Martin.vGagern@gmx.net>

Signed-off-by: Rémi Cardona <remi@gentoo.org>
Acked-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit b1c3dc6ae2)
2009-07-29 15:49:36 -07:00
Alan Coopersmith
546f913ff5 Don't printf NULL pointers on HAL connection error
Fixes Solaris bug 6801386 Xorg core dumps on startup if hald not running
http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6801386

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
(cherry picked from commit 1e816065e5)
2009-07-29 15:49:23 -07:00
Jeremy Huddleston
1439f9f967 XQuartz: Avoid a possible spinlock in applicationWillTerminate
(cherry picked from commit f430cda0fd)
2009-07-28 22:53:34 -07:00
Jeremy Huddleston
05897fe663 XQuartz: Avoid namespace collission for BOOL in Sparkle
(cherry picked from commit 227c6e01a6)
2009-07-28 22:53:33 -07:00