Commit graph

3209 commits

Author SHA1 Message Date
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
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
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
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
Jeremy Huddleston
75e1047308 XQuartz: xpr: Added missing include for RootlessHideAllWindows 2009-07-25 10:39:26 -07:00
Jeremy Huddleston
023cef31bb XQuartz: Rever the "Set can_quit to true during a Sparkle-initiated relaunch." change
This was in place to work around the issue that was correctly solved with the
previous commit (changing the Windows menu behavior).  Reverting this change
no longer causes crashing, so it's safe to show the dialog now.
2009-07-24 09:16:37 -07:00
Jeremy Huddleston
27ac513526 XQuartz: Change handling of Windows menu to workaround a bug triggered by mixing Sparkle and X11 windows
<rdar://problem/7088335> NSApplication releases the separator in the Windows menu even though it's an IBOutlet
2009-07-23 20:03:29 -07:00
Jeremy Huddleston
b2e9a77111 XQuartz: Set can_quit to true during a Sparkle-initiated relaunch. 2009-07-21 00:22:12 -07:00
Jeremy Huddleston
305144bfa4 XQuartz: Added a "Check for X11 Updates..." menu item. 2009-07-20 22:38:25 -07:00
Jeremy Huddleston
c45f1be364 XQuartz: Initial support for automatic updates through Sparkle 2009-07-18 15:51:29 -07:00
Jeremy Huddleston
46bfacc69c XQuartz: Localization updates
(cherry picked from commit 4b797fc1ed)
2009-07-16 17:30:01 -07:00
Jeremy Huddleston
f2db41de0c XQuartz: Cleanup getGlCapabilities to avoid hardcoding the number of displays
(cherry picked from commit 12f7365f1f)
2009-07-16 17:29:56 -07:00
Jeremy Huddleston
1814fdf45a XQuartz: Allow more than 3 OSX displays
(cherry picked from commit 45045eb396)
2009-07-16 17:29:51 -07:00
Jeremy Huddleston
3638f99f03 XQuartz: SwitchCoreKeyboard() to copy the keymap to the virtual core keyboard. 2009-07-15 23:05:11 -07:00
Jeremy Huddleston
044bd7f605 XQuartz: Cleanup keymap locking, fix a possible synchro bug
(cherry picked from commit 33e7437a49)
2009-07-15 23:04:46 -07:00
Jeremy Huddleston
ddc0242d8f XQuartz: ProcAppleWMAttachTransient to play nice with the new Dock in SL 2009-07-03 19:25:33 -07:00
Jeremy Huddleston
40c1406830 XQuartz: Don't leave zombied processes at startup 2009-06-27 15:28:34 -07:00
Jeremy Huddleston
60a757d280 XQuartz: 64bit fix for screen origin in AppleWM 2009-06-27 14:40:03 -07:00
Jeremy Huddleston
a5f055bf22 XQuartz: More localization updates
(cherry picked from commit 5925c1f48a)
2009-06-27 10:41:51 -07:00
Jeremy Huddleston
a3b877c5bb XQuartz: More localization updates
(cherry picked from commit 7fbe974246)
2009-06-19 21:16:40 -07:00
Jeremy Huddleston
e10c53421f XQuartz: AIGLX dispatch table cleanup
This should fix some issues when building on different versions of OSX.  We only use extensions that OpenGL.framework's glext.h header tells us are supported.
2009-06-06 21:55:51 -07:00
Jeremy Huddleston
09432fa5b1 XQuartz: Default to forcing the dialog box before quitting.
This will show the quit dialog for users of other WMs.
(cherry picked from commit 639ee0c913)
2009-06-02 10:20:50 -07:00
Jeremy Huddleston
891edc919c XQuartz: English localization update for HIG compliance
(cherry picked from commit 86b319d7cb)
2009-05-29 11:44:36 -07:00
Jeremy Huddleston
be4c14755a XQuartz: More localization updates
(cherry picked from commit b107390c9f)
2009-05-27 10:07:54 -07:00
Jeremy Huddleston
fe3c35db33 XQuartz: pbproxy standalone: added missing variable declarations.
(cherry picked from commit 2d947d17a3)
2009-05-09 11:38:18 -07:00
Jeremy Huddleston
6ebb56d3f5 XQuartz: Localization update
(cherry picked from commit 9435fc5e20)
2009-04-22 19:32:37 -07:00
Jeremy Huddleston
c0c859ee18 XQuartz: Make sure the bgMouseLocationUpdated state is consistent
(cherry picked from commit 8fa8a8e1db)
2009-04-22 19:32:32 -07:00
Jeremy Huddleston
a3fbdb30b5 XQuartz: Use correct values for ProximityIn and ProximityOut
This was the other underlying cause of teh 100% CPU tablet issue.
(cherry picked from commit a9cecf34c2)
2009-04-11 17:26:21 -07:00
Jeremy Huddleston
9d8ce0ea76 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.
(cherry picked from commit c21ca7558d)
2009-04-11 17:23:10 -07:00
Jeremy Huddleston
35a678ec15 XQuartz: Re-enable background window checking
since that code was not the culprit for the wacom tablet, background 100% CPU bug
(cherry picked from commit fc1dc5d71b)
2009-04-11 17:22:56 -07:00
Jeremy Huddleston
83c2310b16 XQuartz: Only set MotionNotify on activation if it is updated.
(cherry picked from commit ae8077a251)
2009-04-11 17:22:44 -07:00
Jeremy Huddleston
166c4778fc XQuartz: Make sure the Fn doesn't trigger unneccessary calls to DarwinUpdateModKeys()
(cherry picked from commit 70a18558c6)
2009-04-11 17:22:32 -07:00
Jeremy Huddleston
1bf2708211 XQuartz: Re-enable Fn as an option for 3button mouse simulation.
Patch from Martin Otte <otte@duke.edu>
(cherry picked from commit b5ec3be6b5)
2009-04-11 17:22:10 -07:00
Jeremy Huddleston
5b4f92bf2d XQuartz: xprSetWindowLevel updated to store the level requested by the WM
(cherry picked from commit c28c2ddc3a)
2009-04-10 00:48:19 -07:00
Jeremy Huddleston
6479d39405 XQuartz: Update window levels when changing rootless state
(cherry picked from commit 1359ded5bf)
2009-04-10 00:47:34 -07:00
Jeremy Huddleston
1d50d961f1 XQuartz: Fix window levels for rooted mode to allow showing the menu bar.
(cherry picked from commit 80759a4186)
2009-04-10 00:47:22 -07:00
Jeremy Huddleston
b1cb981097 XQuartz: Properly set the window level for the root window
(cherry picked from commit bdf9286d1c)
2009-04-10 00:47:11 -07:00
Jeremy Huddleston
5c435dc15f 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.
(cherry picked from commit 970f100ca3)
2009-04-10 00:46:57 -07:00