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 54000bdcbca52a2de31f7c1a1147de6d8e9dbbb8)
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 29cb904e4de2411a9b6dbe68694954788f0525f7)
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 ceaa5c779ceed3de5ea53727649613be3133b24e)
2009-09-27 23:31:16 -07:00
Jeremy Huddleston
07c935b72f
XQuartz: Use applewmproto 1.4 updated headers.
...
(cherry picked from commit 203df06c0eb2dcd5adfa788a1ba9569650c15f9c)
2009-08-25 20:16:47 -07:00
Jeremy Huddleston
0fe639a314
XQuartz: Only save lastpt on mouse/tablet events
...
(cherry picked from commit 552be074e5be6492df3e290e8b7d9daff1a2cb34)
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 65ae2d00e1a53f97f2ff9522406ab69d50bf3199)
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 6c5bf756a7f5389cdfe2e43a339d7c31a3e522e9)
2009-08-05 16:17:09 -07:00
Jeremy Huddleston
1e49c8d340
XQuartz: Avoid namespace collission for BOOL in Sparkle
...
(cherry picked from commit 227c6e01a641b72158201553273299283cdb5599)
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 b2e9a77111d4572402d8ca95e3368db97ba7d598)
2009-07-24 09:41:46 -07:00
Jeremy Huddleston
7ff84d350b
XQuartz: Added a "Check for X11 Updates..." menu item.
...
(cherry picked from commit 305144bfa4b59791123c44e869fab93a084792d6)
2009-07-24 09:41:32 -07:00
Jeremy Huddleston
be4dd35ffe
XQuartz: Initial support for automatic updates through Sparkle
...
(cherry picked from commit c45f1be36426bceeef9af67c26351114f14f5277)
2009-07-20 22:04:18 -07:00
Jeremy Huddleston
a362d0f4fb
XQuartz: Make sure the bgMouseLocationUpdated state is consistent
...
(cherry picked from commit 8fa8a8e1db60c8ac60d10f1f15517471d2291f77)
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 a9cecf34c23fbcd59b56b380c51d31a9fabc3eb7)
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 fc1dc5d71b2a488a8a94d953dd8e67353161a590)
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 ae8077a251ef27381a755d57ff974767bda16148)
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 70a18558c6b0a02b633fd8974f002cdf3cdc713e)
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 c80d0ec18ef5b842447d31360406d0b5b9424222)
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 c7457d7b31ddd2ddfd04dd6294bed4532664e1ab)
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 f393fb686cfbedb11a1539d4eaf5c491af8b3a64)
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 5d1dd35096334b59564d77caef7a97bd58845c5d)
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 7a67935b05a475215b9bdbb959e4f7e15f32416f)
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 1d479fa4f3bca9cbd81808a6c87582422fd2a257)
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 6461729647ff4441d80811e73f0c0d2f108f2700)
2009-01-11 16:37:46 -08:00
Jeremy Huddleston
c8bf582db8
XQuartz: Comment explaining the 0x10 flag for [e data2]
...
(cherry picked from commit 3c695280641c1205b97d3bb9f1d5e15a19cfa45f)
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 91f3c3435716195e6d606c8e2f6b0de52eb5972d)
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 cb912aca3a2834c4ad8e386c8a0d05c1bb31b0e7)
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 3eef78eb321f4f7dbca5a10c80666c621e28a1e0)
2008-12-31 12:45:13 -08:00
Jeremy Huddleston
1a69d56afd
XQuartz: Better avoid stuck keys on context switches
...
(cherry picked from commit e9963f1a4f4f12f253eae9d4f01694b6cabe35ad)
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 bc13dda345f716bf4de9bfe4e1d85969263b60c2)
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 33f43a7f03023bfbab25a957cb81fc25b4afa4ca)
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 748d9e5bd756513d42c4046f3b31e1fdc55bccb6)
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 fd459e96581a883e30323c840b71004aa0747169)
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 fd4710aff3723d5f3422cf6a6530172eafc556d9)
(cherry picked from commit 635019ad18db921fec99256294debd8571074abf)
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 780eff230ce41ad785e54d61a82c731269ae0446)
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 3a500d9247cf34686ec17b4a88c34d51ecd38ecd)
2008-11-25 00:54:37 -08:00
Jeremy Huddleston
03f7a66a1a
XQuartz: Don't use TIS on Tiger...
...
(cherry picked from commit be8ac84c15e7e76c581b9e75cda74139394aa4c7)
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 42944936326ef8732f622db9f75b79a92980550d)
2008-11-15 19:52:34 -08:00
Jeremy Huddleston
1d7049f8fd
Xquartz: Force sending mouse clicks to AppKit if we're over the menu bar
...
(cherry picked from commit 7dff93ec1ac92aeaf3b70d5cfe787fa4a28c0dba)
2008-11-14 11:10:24 -08:00