Commit graph

2590 commits

Author SHA1 Message Date
Jeremy Huddleston
b5ec3be6b5 XQuartz: Re-enable Fn as an option for 3button mouse simulation.
Patch from Martin Otte <otte@duke.edu>
2009-04-11 13:53:38 -07:00
Jeremy Huddleston
c28c2ddc3a XQuartz: xprSetWindowLevel updated to store the level requested by the WM 2009-04-09 20:00:37 -07:00
Jeremy Huddleston
1359ded5bf XQuartz: Update window levels when changing rootless state 2009-04-09 18:51:22 -07:00
Jeremy Huddleston
80759a4186 XQuartz: Fix window levels for rooted mode to allow showing the menu bar. 2009-04-09 18:27:22 -07:00
Jeremy Huddleston
bdf9286d1c XQuartz: Properly set the window level for the root window 2009-04-09 17:47:41 -07:00
Jeremy Huddleston
970f100ca3 XQuartz: Properly set the menu bar and hotkey state when changing rootless mode.
Currently no code path exhibits the broken behavior since we only toggle into rootless if we don't have the root.
2009-04-09 04:36:26 -07:00
Jeremy Huddleston
5ecc497f71 XQuartz: In rooted mode, make sure we start in the hidden state. 2009-04-09 03:55:13 -07:00
Jeremy Huddleston
c80d0ec18e XQuartz: Send MotionNotify before button presses when X11 is in the background 2009-04-06 21:34:14 -07:00
Jeremy Huddleston
997b6f3142 XQuartz: Revert most of the previous override redirect patch
The changes actually caused all windows to move to the current space.  Instead, we're going with a fix entirely within Xplugin that depends on quartz-wm being the window-manager for now.
2009-04-06 19:21:46 -07:00
Jeremy Huddleston
9e6dab89e0 XQuartz: Use updated Xplugin API to send overide-redirect windows to the current space when they're ordered in
This fixes the annoying "using a menu moves me to another space" bug
2009-04-05 03:20:40 -07:00
Jeremy Huddleston
c7457d7b31 XQuartz: Send a MotionNotify event for the mouse cursor when activating X11.app
Otherwise if X11.app was activated with a mouse click, the location of the even is the last location of the cursor before X11 was deactivated
2009-04-05 00:08:40 -07:00
Jeremy Huddleston
f393fb686c XQuartz: Still send mouse events while X11 is in the background if we have test extensions enabled 2009-04-01 13:45:02 -07:00
Jeremy Huddleston
49871e9917 XQuartz: Return BadRequest when SendPSN isn't implemented rather than success 2009-04-01 13:07:15 -07:00
Jeremy Huddleston
276ee3bb08 XQuartz: Pad xAppleDRINotifyEvent to 32bytes to match sizeof(xEvent) 2009-04-01 12:46:51 -07:00
Jeremy Huddleston
5d1dd35096 XQuartz: Don't report mouse events while X11 is not the foreground application 2009-03-31 18:11:19 -07:00
Jeremy Huddleston
7a67935b05 XQuartz: Fix mouse tracking for quake, et. al. in wine
Patch courtesy of Codeweavers

Fix mouse movement tracking.  For a non-window-related mouse-move event,
calculate the new position by adding the event's delta-x and delta-y values
to the previous mouse position.  Do not rely on the current mouse position
because it may have been changed by a XWarpPointer call.
2009-03-30 20:39:16 -07:00
Jeremy Huddleston
f179a51b55 XQuartz: SnowLeopard: Help system book name changed in 10.6
(cherry picked from commit b57cb05c69)
2009-03-30 20:39:16 -07:00
Jeremy Huddleston
cb3e9e2bb0 XQuartz: GLX - dead code removal 2009-03-06 23:13:56 -05:00
Jeremy Huddleston
779e9fdc2d XQuartz: Implement SendPSN for AppleWM 2009-03-04 13:38:29 -08:00
George Staplin
aa0a57996f XQuartz: Add diagnostic error checking to xp_destroy_surface.
This occurred to me in hindsight after the last commit.  If the
original developer had done this, we would have noticed the
problem sooner.
2009-03-04 02:03:52 -07:00
George Staplin
bede83eb19 XQuartz: Fix a memory leak with surfaces that a new test found.
xp_destroy_surface was called with a surface id of 0, due to some
premature cleanup that set it to 0.  This means the surfaces
weren't being destroyed until the window was.

The code that did that was: pDRIDrawablePriv->sid = 0;

In long running applications this leak may or may not have been
harmful.  With the old libGL the surfaces weren't destroyed until
the context was destroyed or a new context created.  In the new
libGL they are reference counted, and released much sooner, so we
ran into a resource leak more noticeably with some tests.

Make the Apple DRI code dispatch events to the client(s) for
destroyed surfaces, when a resource is destroyed.  This seems to
work in my tests, however this clearly wasn't working for a while,
so bugs may result in the future if it enables some new (unexpected)
side effects.

Also add a few helpful comments to aid in understanding the code
in the future.

Tested with the test suite, Pymol, and various Mesa demos.
2009-03-04 01:39:58 -07:00
George Staplin
99babae132 XQuartz: GL: Fix a problem with uninitialized data in __glXAquaScreenProbe.
I added a memset to fix the issue with an uninitialized function pointer,
and potentially other GLX data in ->base.

Also use xalloc and xfree, instead of malloc.

Enable the alpha bits from the __GLcontextModes.  The alphaBits are no
longer always 0 as the previous comment eluded to.

Add some commentary about how some of the data structures work.

Cleanup some of the GLAQUA_DEBUG_MSG.

This was tested with various Mesa demos in a variety of situations over
indirect.
2009-03-02 01:22:15 -07:00
Jeremy Huddleston
3e2427e6e9 XQuartz: Don't erase the mode_switch+keysym if it's the same as shift+keysym 2009-02-26 21:22:48 -08:00
Jeremy Huddleston
516b82709f bundle version 2.3.3 2009-02-25 11:31:05 -08:00
Jeremy Huddleston
ffaec14cd1 XQuartz: Integrate DRI changes backported from the 1.6 branch 2009-02-25 01:22:33 -08:00
Jeremy Huddleston
4901b8147e XQuartz: Re-enable support for capslock 2009-02-24 23:12:57 -08:00
Adam Jackson
9f6e855f4e Build fixes
(cherry picked from commit 95000e34df)
2009-02-24 22:28:36 -08:00
Jeremy Huddleston
1d479fa4f3 XQuartz: Comment out the background pointer interaction that seems to be causing CPU spinning on some configurations 2009-02-24 18:54:16 -08:00
Jeremy Huddleston
4b9fc7fc82 Death to APPGROUP.
(cherry picked from commit eafaf40fb3)
2009-02-24 18:40:42 -08:00
Jeremy Huddleston
9a2dfb067c Default to use standard bitmap fonts, with builtins as fallback
The builtin-fonts configure option was removed, as it at best should
have been a runtime option. Instead, now it always register all "font
path element" backends, and adds built-ins fonts at the end of the
default font path.
  This should be a more reasonable solution, to "correct" the most
common Xorg FAQ (could not open default font 'fixed'), and also don't
break by default applications that use only the standard/historical
X Font rendering.
(cherry picked from commit 49b93df8a3)

    Signed-off-by: Keith Packard <keithp@keithp.com>
(cherry picked from commit 69a2728891)
2009-02-24 17:52:03 -08:00
Jeremy Huddleston
2f0f662941 Remove loadable font renderer support.
(cherry picked from commit affec10635)
2009-02-24 17:49:41 -08:00
Jeremy Huddleston
725c2cbaa7 X n'est pas une print API.
(cherry picked from commit 1c8bd318fb)
2009-02-24 17:46:36 -08:00
Adam Jackson
1f69f2d037 requestingClient is an xprintism, hide it for other servers.
(cherry picked from commit 7c0709a736)
2009-02-24 17:22:31 -08:00
Jeremy Huddleston
83d7a8b2ad Revert "XQuartz: DefineInitialRootWindow is gone"
I pushed this to the wrong branch...

This reverts commit 346b25f88f.
2009-02-22 00:42:09 -08:00
Jeremy Huddleston
346b25f88f XQuartz: DefineInitialRootWindow is gone 2009-02-22 00:39:41 -08:00
Keith Packard
bde1e3a7c9 X11/fonts/fontmod.h doesn't exist anymore.
libXfont 1.4.0 no longer includes this file, nor do we need it, so just stop
attempting to reference it.

Signed-off-by: Keith Packard <keithp@keithp.com>
(cherry picked from commit 4557b3f6c4)
2009-02-18 17:59:45 -08:00
Jeremy Huddleston
1dd273621d XQuartz: Fix copyright info in Info.plist to be prettier when viewed in Finder
(cherry picked from commit 8b607c9c50)
2009-02-12 15:35:43 -08:00
Jeremy Huddleston
e87290dfab Revert "XQuartz: Re-enable rlAccel"
This reverts commit 8121f30bd2.
2009-02-05 13:08:15 -08:00
Jeremy Huddleston
7f29665573 XQuartz: Accept bundle version 2.1.6 to work with our startup method 2009-02-03 09:58:51 -08:00
Jeremy Huddleston
8620579483 XQuartz: GLX: Fix accidental exclusion of glBlitFramebufferEXT on Leopard 2009-02-02 12:30:57 -08:00
Jeremy Huddleston
e01662cadc XQuartz: GLX: OpenGL.framework on Tiger doesn't have glBlitFramebufferEXT 2009-02-01 15:08:02 -08:00
George Staplin
e2450a4227 XQuartz: GL: indirect.c changes to fix the build with newer OpenGL frameworks.
(cherry picked from commit 143224405b)
(cherry picked from commit 92f00abc1f)
2009-02-01 15:05:21 -08:00
Jeremy Huddleston
fc19796e0e XQuartz: Fix builddir != srcdir issues and undef _XSERVER64 where appropriate on fat binary compilation
(cherry picked from commit f020900641)
(cherry picked from commit 242e58f57b)
2009-01-30 09:26:07 -08:00
Jeremy Huddleston
48a2210439 XQuartz: Only call DarwinUpdateModKeys when needed
Previously, we were calling it on almost every itteration through sendX11Event
(cherry picked from commit 6461729647)
2009-01-11 16:39:15 -08:00
Jeremy Huddleston
f7b6c1907c XQuartz: Update padding in appledristr. This shouldn't change how the struct ends up in memory, but should make it more obvious for human eyes 2009-01-07 18:27:21 -08:00
Jeremy Huddleston
9f1c26ae8d XQuartz: Copyright Update... happy new year 2009-01-02 11:06:12 -08:00
Jeremy Huddleston
49e59d32b8 XQuartz: pbproxy: Push dpy init and CFRunLoop hook setup into the pbproxy thread to avoid possible deadlock 2009-01-02 10:58:40 -08:00
Jeremy Huddleston
5ac87d00b2 Revert "XQuartz: Ignore mach IPC until the appkit thread is ready to avoid possible deadlock (this can be reversed once pbproxy uses server API)"
Gonna try this a different way...

This reverts commit 9eec2d3e3b.
2009-01-02 10:36:43 -08:00
Jeremy Huddleston
9eec2d3e3b XQuartz: Ignore mach IPC until the appkit thread is ready to avoid possible deadlock (this can be reversed once pbproxy uses server API) 2008-12-31 14:11:47 -08:00
Jeremy Huddleston
cb912aca3a XQuartz: Don't use NX_SECONDARYFNMASK, NX_NUMERICPADMASK, NX_HELPMASK
We don't have keycodes for them, so don't try to use them
2008-12-31 12:40:02 -08:00