Jeremy Huddleston
883039e07b
XQuartz: Just NSBeep() for XBell()
...
The CoreAudio path uses deprecated API and has reported crashes that
aren't worth fixing (4e8bf12b13
fixed
one and introduced another). NSBeep() does the job just fine.
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2010-12-08 13:57:19 -08:00
Jeremy Huddleston
a4698754c1
XQuartz: Add pointer debugging
...
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2010-11-22 19:14:51 -08:00
Jeremy Huddleston
c45bea0c04
XQuartz: RandR: Refactor legacy mode-switching to be better integrated with RandR
...
Adds three new functions
void QuartzRandRSetFakeRootless (void);
void QuartzRandRSetFakeFullscreen (void);
void QuartzRandRToggleFullscreen (void);
The first two are identical to requesting the fake modes from a RandR client
The third responds to cmd-alt-a to leave fullscreen or RandR.
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2010-09-28 10:09:11 -07:00
Jeremy Huddleston
229323a19b
XQuartz: RandR: Don't change the rootless preference when changing RandR mode
...
Also renames a bunch of other variables for better consistency.
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2010-09-28 09:50:35 -07:00
Jeremy Huddleston
4fc4cab98d
XQuartz: Make application switching work better for the no-spaces case
...
We still have the issue with not raising the frontmost window for the case
when spaces is enabled, and the AppleSpacesSwitchOnActivate preference is
disabled.
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2010-08-12 20:26:36 -10:00
Jeremy Huddleston
ecfeabec8d
XQuartz: Don't use deltaXY for determining pointer location on scroll events
...
<rdar://problem/7989690>
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Reviewed-by: Edward Moy <emoy@apple.com>
2010-05-16 13:12:26 -07:00
Jeremy Huddleston
a911292c85
XQuartz: Don't trust deltaXY for middle mouse clicks.
...
The middle mouse clicks return erroneous values after returning from
Fast User Switching.
<rdar://problem/7979468>
http://xquartz.macosforge.org/trac/ticket/389
Signed-off-by: Martin Otte <otte@duke.edu>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Reviewed-by: Edward Moy <emoy@apple.com>
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2010-05-16 13:12:15 -07:00
Jeremy Huddleston
840d12c7a6
XQuartz: Add a defaults option to toggle Alt / Mode_switch
...
See option_sends_alt in Xquartz(1)
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Reviewed-by: Kevin Van Vechten <kvv@apple.com>
2010-04-11 16:30:19 -07:00
Jeremy Huddleston
d16bc8a3cd
XQuartz: xpbproxy: Cleanup xpbproxy threading
...
Confine xpbproxy to a single thread
Runs inside its own CFRunLoop
Signed-off-by: Jeremy Huddleston <jeremyhu@freedesktop.org>
2010-03-21 21:56:39 -07:00
Jeremy Huddleston
4127e8e5be
XQuartz: clang static analysis fixes
...
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2010-02-15 15:03:49 -08:00
Jeremy Huddleston
6d6e8fb27f
XQuartz: Controller thread launches clients
...
This avoids a memory leak due to no active auto-release pool on the server thread.
Signed-off-by: Jeremy Huddleston <jeremyhu@freedesktop.org>
2009-11-05 18:34:50 -08:00
Jeremy Huddleston
5e79976c13
XQuartz: Run xmodmap after programatically updating the keymap.
...
Signed-off-by: Jeremy Huddleston <jeremyhu@freedesktop.org>
Signed-off-by: Martin Otte <otte@duke.edu>
2009-11-03 16:35:27 -08:00
Jeremy Huddleston
c4886fbabc
XQuartz: Send mouse location with scroll events.
...
This fixes the problem where (0, 0) was sent as the mouse location with scroll
button events causing the event to not reach the client.
2009-10-02 18:58:35 -07:00
Jeremy Huddleston
67a51cd9ef
XQuartz: Fix a bunch of compilation warnings about style
...
(cherry picked from commit 54000bdcbc
)
2009-09-27 23:31:35 -07:00
Jeremy Huddleston
96780eaf32
XQuartz: Nuke TSM
...
It's deprecated in SnowLeopard. Ben and I both have no idea what it is for. It says something about unicode input, but urxvt seems fine taking in unicode, so /shrug... bye.
(cherry picked from commit 29cb904e4d
)
2009-09-27 23:31:29 -07:00
Jeremy Huddleston
558d803b29
XQuartz: Force a keymap resync on the first keypress to workaround XKB mucking with our keymap.
...
We need to find a better way to work with XKB on this.
(cherry picked from commit ceaa5c779c
)
2009-09-27 23:31:16 -07:00
Jeremy Huddleston
07c935b72f
XQuartz: Use applewmproto 1.4 updated headers.
...
(cherry picked from commit 203df06c0e
)
2009-08-25 20:16:47 -07:00
Jeremy Huddleston
0fe639a314
XQuartz: Only save lastpt on mouse/tablet events
...
(cherry picked from commit 552be074e5
)
2009-08-05 16:17:33 -07:00
Jeremy Huddleston
491c2d74c1
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:22 -07:00
Jeremy Huddleston
df6c013524
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:17:09 -07:00
Jeremy Huddleston
1e49c8d340
XQuartz: Avoid namespace collission for BOOL in Sparkle
...
(cherry picked from commit 227c6e01a6
)
2009-07-28 22:54:06 -07:00
Jeremy Huddleston
171409cecb
XQuartz: Set can_quit to true during a Sparkle-initiated relaunch.
...
(cherry picked from commit b2e9a77111
)
2009-07-24 09:41:46 -07:00
Jeremy Huddleston
7ff84d350b
XQuartz: Added a "Check for X11 Updates..." menu item.
...
(cherry picked from commit 305144bfa4
)
2009-07-24 09:41:32 -07:00
Jeremy Huddleston
be4dd35ffe
XQuartz: Initial support for automatic updates through Sparkle
...
(cherry picked from commit c45f1be364
)
2009-07-20 22:04:18 -07:00
Jeremy Huddleston
a362d0f4fb
XQuartz: Make sure the bgMouseLocationUpdated state is consistent
...
(cherry picked from commit 8fa8a8e1db
)
2009-04-22 19:30:18 -07:00
Jeremy Huddleston
140463a197
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:27 -07:00
Jeremy Huddleston
6f8f7c78f1
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:23:03 -07:00
Jeremy Huddleston
8522a759c9
XQuartz: Only set MotionNotify on activation if it is updated.
...
(cherry picked from commit ae8077a251
)
2009-04-11 17:22:50 -07:00
Jeremy Huddleston
5e55becddc
XQuartz: Make sure the Fn doesn't trigger unneccessary calls to DarwinUpdateModKeys()
...
(cherry picked from commit 70a18558c6
)
2009-04-11 17:22:38 -07:00
Jeremy Huddleston
e86f4e9302
XQuartz: Send MotionNotify before button presses when X11 is in the background
...
(cherry picked from commit c80d0ec18e
)
2009-04-10 00:46:35 -07:00
Jeremy Huddleston
67621f3b39
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
(cherry picked from commit c7457d7b31
)
2009-04-05 16:32:02 -07:00
Jeremy Huddleston
9180081ec3
XQuartz: Still send mouse events while X11 is in the background if we have test extensions enabled
...
(cherry picked from commit f393fb686c
)
2009-04-01 13:53:15 -07:00
Jeremy Huddleston
3311ef6ec9
XQuartz: Don't report mouse events while X11 is not the foreground application
...
(cherry picked from commit 5d1dd35096
)
2009-03-31 18:13:18 -07:00
Jeremy Huddleston
0b6e14d46f
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.
(cherry picked from commit 7a67935b05
)
2009-03-30 20:41:38 -07:00
Jeremy Huddleston
4b63f88b0a
XQuartz: Comment out the background pointer interaction that seems to be causing CPU spinning on some configurations
...
(cherry picked from commit 1d479fa4f3
)
2009-02-24 22:22:03 -08:00
Jeremy Huddleston
0720816aea
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:37:46 -08:00
Jeremy Huddleston
c8bf582db8
XQuartz: Comment explaining the 0x10 flag for [e data2]
...
(cherry picked from commit 3c69528064
)
2009-01-11 13:56:46 -08:00
Jeremy Huddleston
fc14d52297
XQuartz: Use AvailabilityMacros.h instead of availability.h for Tiger
...
(cherry picked from commit 91f3c34357
)
2009-01-07 01:48:23 -08:00
Jeremy Huddleston
2f361186f9
XQuartz: Don't use NX_SECONDARYFNMASK, NX_NUMERICPADMASK, NX_HELPMASK
...
We don't have keycodes for them, so don't try to use them
(cherry picked from commit cb912aca3a
)
2008-12-31 12:45:34 -08:00
Jeremy Huddleston
a2abaa9fd3
XQuartz: Make sure to reset the saved key state when deactivating X11.app
...
(cherry picked from commit 3eef78eb32
)
2008-12-31 12:45:13 -08:00
Jeremy Huddleston
1a69d56afd
XQuartz: Better avoid stuck keys on context switches
...
(cherry picked from commit e9963f1a4f
)
2008-12-31 12:43:17 -08:00
Jeremy Huddleston
f464b5a916
XQuartz: Workaround OSX VNC server bug for modifier key state
...
A better approach which ensures we have a L modifier key down if we are told neither are down and atleast one is down... =/
(cherry picked from commit bc13dda345
)
2008-12-31 12:43:02 -08:00
Jeremy Huddleston
ba9dc353a6
XQuartz: Don't use keycode 0 to determine !swallow since our most common key to swallow is actual keycode 0 (a)
...
(cherry picked from commit 33f43a7f03
)
2008-12-21 21:36:02 -08:00
Jeremy Huddleston
aee27be278
XQuartz: Tiger fix, don't call Xplugin code in the Appkit thread if Xplugin isn't threadsafe.
...
(cherry picked from commit 748d9e5bd7
)
2008-12-15 03:22:01 -08:00
Jeremy Huddleston
ecaaf0462d
XQuartz: unsetenv(DISPLAY) if we're not org.x.X11
...
Also some prefix related fixes.
(cherry picked from commit fd459e9658
)
2008-12-10 15:07:26 -08:00
Jeremy Huddleston
3d527b91b4
XQuartz: Added option to enable/disable test extensions
...
defaults write org.x.X11 enable_test_extensions -boolean true
(cherry picked from commit fd4710aff3
)
(cherry picked from commit 635019ad18
)
2008-11-28 13:02:54 -08:00
Jeremy Huddleston
71d3df7cc3
XQuartz: Avoid some warning messages being spewed to system.log by AppKit
...
(cherry picked from commit 780eff230c
)
2008-11-28 13:02:52 -08:00
Jeremy Huddleston
b55cad4569
XQuartz: Don't hardcode values of org.x.X11 for the preferences domain
...
(cherry picked from commit 3a500d9247
)
2008-11-25 00:54:37 -08:00
Jeremy Huddleston
03f7a66a1a
XQuartz: Don't use TIS on Tiger...
...
(cherry picked from commit be8ac84c15
)
2008-11-15 19:52:52 -08:00
Jeremy Huddleston
e8112784e8
XQuartz: Integrated xpbproxy into the server.
...
Added a configure option called --enable-standalone-xpbproxy which is useful for deveoping xpbproxy.
The 'active' switch in preferences just disables the in-server xpbproxy (not this standalone).
(cherry picked from commit 4294493632
)
2008-11-15 19:52:34 -08:00