Commit Graph

4468 Commits

Author SHA1 Message Date
Jeremy Huddleston
a9cecf34c2 XQuartz: Use correct values for ProximityIn and ProximityOut
This was the other underlying cause of teh 100% CPU tablet issue.
2009-04-11 16:53:59 -07:00
Jeremy Huddleston
c21ca7558d XQuartz: Solve the tablet 100% CPU bug
This happened because we put a byte in the fd to wake up dispatch, but we never actually enqueued anything in mieq because the num_events was 0.
2009-04-11 16:38:02 -07:00
Jeremy Huddleston
fc1dc5d71b XQuartz: Re-enable background window checking
since that code was not the culprit for the wacom tablet, background 100% CPU bug
2009-04-11 16:13:42 -07:00
Jeremy Huddleston
ae8077a251 XQuartz: Only set MotionNotify on activation if it is updated. 2009-04-11 16:12:23 -07:00
Jeremy Huddleston
70a18558c6 XQuartz: Make sure the Fn doesn't trigger unneccessary calls to DarwinUpdateModKeys() 2009-04-11 14:23:41 -07:00
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
9af123fc72 1.4.2-apple41 2009-04-09 19:10:51 -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
7a15425dc2 1.4.2-apple40 2009-04-05 03:43:01 -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
842d7a7e23 1.4.2-apple39 2009-04-01 20:15:14 -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
2b3492c723 1.4.2-apple38 2009-03-30 20:39:51 -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
be0c376604 1.4.2-apple37 2009-03-15 12:32:22 -07:00
George Staplin
d0b249f1c5 GL: glx: Fix an issue with the glxint.h causing an ABI disagreement over the number of properties sent.
This is apparently resolved in newer branches of the X server.

Add some assertions to prevent this from happening again in the 1.4 branch, and write out the total
number of properties actually written, rather than the value from glxint.h.
2009-03-14 20:40:52 -06:00
Jeremy Huddleston
cb3e9e2bb0 XQuartz: GLX - dead code removal 2009-03-06 23:13:56 -05:00
Jeremy Huddleston
363a6df948 1.4.2-apple36 2009-03-06 10:23:06 -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
7f24969f6d 1.4.2-apple35 2009-02-25 11:31:23 -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
ab0a4ad821 1.4.2-apple34 2009-02-24 19:46:33 -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
f1ce588fd1 XQuartz: Nuke an include that snuck in with the APPGROUP cherry-pick 2009-02-24 18:51:02 -08:00
Jeremy Huddleston
4b9fc7fc82 Death to APPGROUP.
(cherry picked from commit eafaf40fb3)
2009-02-24 18:40:42 -08:00
Jeremy Huddleston
61a4e5e588 More XPRINT nuke 2009-02-24 18:38:40 -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
Julien Cristau
403745e52d Ansify declaration of FontToXError()
(cherry picked from commit e85d5d707d)
2009-02-24 17:50:38 -08:00
Jie Luo
443d218c84 Remove duplicate load of freetype font renderer.
libXfont will do this for us in FontFileRegisterFpeFunctions.
(cherry picked from commit e3ff850174)
2009-02-24 17:50:26 -08:00
Jeremy Huddleston
2f0f662941 Remove loadable font renderer support.
(cherry picked from commit affec10635)
2009-02-24 17:49:41 -08:00
Adam Jackson
6cab826c52 Remove the numVideoScreens xprintism.
This was to account for cases where you had video and print screens in
the same server.  Lunacy.  Leave the slot in ScreenInfo, but rename it,
and stop looking at it.
(cherry picked from commit a82e6efb7b)
2009-02-24 17:47:24 -08:00