Commit graph

2479 commits

Author SHA1 Message Date
Jeremy Huddleston
cb6ffce68a XQuartz: pbproxy: Remove thread-main.m
it got accidently added and isn't used.
2008-11-16 10:42:03 -08:00
Jeremy Huddleston
be8ac84c15 XQuartz: Don't use TIS on Tiger... 2008-11-15 19:45:49 -08:00
Jeremy Huddleston
4294493632 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).
2008-11-15 11:16:42 -08:00
Jeremy Huddleston
7dff93ec1a Xquartz: Force sending mouse clicks to AppKit if we're over the menu bar 2008-11-13 12:45:35 -08:00
Jeremy Huddleston
aa0e9ab1c7 XQuartz: Fixed XBell() when not using system alert. 2008-11-13 11:32:40 -08:00
Jeremy Huddleston
acefa7e3c8 XQuartz: Added more debugging to handoff spew 2008-11-13 11:12:40 -08:00
George Staplin
ed181382dd XQuartz: GL: Handle the alpha differently when the alpha is equal to GLCAPS_COLOR_BUF_INVALID_VALUE.
This prevents visuals with odd sizes.  The machine I use didn't have
this problem, but it shows up on some others.
2008-11-12 17:17:25 -07:00
George Staplin
373b8a5f32 XQuartz: Disable 2 calls to miSetVisualTypesAndMasks that seem to be unnecessary, and possibly wrong (with regard to masks and bits per RGB).
Use the settings queried from the system in xprScreen.c, rather than those 2 calls.

The 2 calls increased the total number of visuals a great deal (when using GLXEXT),
and not all of the visuals were usable with GLX.  Some of the visuals aren't usable
with GLX still, such as DirectColor, but that seems to be acceptable based on my
understanding of the manual that states "a subset of visuals are made available
for OpenGL rendering."
2008-11-09 18:51:08 -07:00
Jeremy Huddleston
54d20f6d33 XQuartz: CFBundleShortVersionString needs to conform to X.Y.Z as well... sigh 2008-11-08 23:32:40 -08:00
Jeremy Huddleston
980df1b4ff XQuartz: Make LS parse our version properly... it didn't like our CFBundleVersion 2008-11-06 14:41:55 -08:00
George Peter Staplin
f527381eea XQuartz: GL: Add capability detection for depth buffers, and multisampling.
GL/capabilities.c: Add handleDepthModes(), and extend
handleRendererDescription() for the various depth and multisampling flags.

Add initialization of the new config options to initConfig().

GL/capabilities.h: Add depth and multisample config members.

GL/visualConfigs.c: Add depth and multisampling support to the visual config
setup.
2008-11-04 12:53:12 -07:00
George Peter Staplin
1e5f63f15e XQuartz: GL: Work around problems with really deep visuals.
GL/capabilities.c: #if 0 (for now) any capabilities above 8 bits per channel,
because they introduce drawing problems.

GL/indirect.c: Comment out some visual setup code that shouldn't be running, and
actually seemed to cause some problems.  The current visualConfigs.c code seems
to do a reasonable job of setting up visuals for XQuartz.

GL/visualConfigs.c: Make use of the proper visual .class.   Eliminate depth 0.
It seems we really just want 24 for now, and 0 I think was a flaw in the original
code.
2008-11-03 19:59:11 -07:00
Jeremy Huddleston
71dd052412 XQuartz: Replace deprecated API usage thanks to Robery Murphy 2008-11-02 15:52:22 -08:00
Jeremy Huddleston
81bb412857 XQuartz: version string updated for 2.3.2_beta3 2008-10-31 20:18:27 -07:00
Jeremy Huddleston
637a9f4bd1 XQuartz: Add option to allow access to the menu in fullscreen mode 2008-10-31 20:03:34 -07:00
Jeremy Huddleston
ea71710aaa XQuartz: LP64 related casting fixes from Bob Murphy 2008-10-31 18:58:57 -07:00
Jeremy Huddleston
c883a78ef0 XQuartz: displayScreenBounds uses quartzEnableRootless rather than !quartzHasRoot 2008-10-31 15:10:34 -07:00
Jeremy Huddleston
9ca099e928 XQuartz: Silence pointer debug spam 2008-10-31 13:00:43 -07:00
Jeremy Huddleston
1115917ada XQuartz: Don't map the menu bar to the screen area. 2008-10-31 13:00:42 -07:00
Jeremy Huddleston
5fc73b1141 XQuartz: Fixed Xplugin thread safety issues, so rea-enable background window check 2008-10-31 13:00:42 -07:00
George Peter Staplin
d5c17f585a XQuartz: GL: Mark visuals that are slower than others, due to lack of acceleration.
This is used in libGL to determine a preferred visual.  glxinfo -v will also
report "visualCaveat=Slow" for such visuals.
2008-10-30 13:56:09 -06:00
Jeremy Huddleston
60d7359a67 XQuartz: if 0 out a block to avoid thread-unsafe lockups 2008-10-29 17:20:11 -07:00
Jeremy Huddleston
490756c7fb XQuartz: Purge the old XQUARTZ_EXPORTS_LAUNCHD_FD option 2008-10-29 17:18:05 -07:00
Jeremy Huddleston
183ca5d68b XQuartz: Pass along SIGINT and SIGTERM from the stub to X11.app 2008-10-28 12:38:05 -07:00
George Peter Staplin
5797d5b662 XQuartz: pbproxy: Fix a bug that prevented nedit CLIPBOARD from being proxied.
It seems that we were calling copy_completed: too soon.  Now we return instead
of falling through to the free_propdata, and copy_completed:.
2008-10-27 22:07:00 -06:00
George Peter Staplin
9be5998ede XQuartz: pbproxy: Work around bugs in some apps that aren't ICCCM compliant.
Eterm ends up setting the type of the property to TARGETS, instead of ATOM.
That's why it wasn't working.
2008-10-27 20:44:02 -06:00
George Peter Staplin
8d048cfa95 XQuartz: pbproxy: Add code to handle PICT conversion to PNG and JPEG.
This may work, unfortunately I don't have test apps that fail.

The way it works is by using an NSImage class initWithPasteboard:
method, which we then get the TIFFRepresentation of, and convert
to PNG or JPEG.

The TIFFRepresentation uses NSTIFFCompressionNone; which should be
lossless.
2008-10-27 16:34:24 -06:00
Jeremy Huddleston
bb330a1b1c XQuartz: pbproxy: fixed blocking 2008-10-26 13:17:49 -07:00
Jeremy Huddleston
3647215310 Xquartz: pbproxy: Some debugging about unhandled mime types... this will spam up quick, but will be useful for a while... 2008-10-26 10:22:12 -07:00
George Peter Staplin
fe35a36390 XQuartz: GL: Fix several error handling mistakes in handleRenderDescriptions, that were leftover before the final code evolved. 2008-10-24 19:12:05 -06:00
George Peter Staplin
98a084ce9c XQuartz: GL: Add feature detection of color sizes, and accum sizes.
This gives us a *lot* more visuals, and they should be more accurate.
Some of the visuals may have been wrong before.  This may enable more
OpenGL programs to behave correctly.

I also suspect libGL needs a little work to handle some of these correctly.
2008-10-24 18:18:58 -06:00
Jeremy Huddleston
af95174a08 XQuartz: Do check_xinitrc() later to avoid possible deadlock. 2008-10-23 17:35:28 -07:00
George Peter Staplin
6bcbb9ba85 XQuartz: pbproxy: pbproxy.h had invalid macro usage with 2 #else statements, so it wasn't building. Fix the build. 2008-10-23 17:56:46 -06:00
George Peter Staplin
508ebb7c45 XQuartz: Remove the enable_stereo default. We now use feature detection to enable stereo visuals.
We need to revisit the GL/indirect.c changes.  I think indirect.c should
be using the same feature detection and GLX visual config code.  The
indirect changes will require testing...

Same as the 1.5 branch changes.
2008-10-23 17:53:13 -06:00
Jeremy Huddleston
6622efca21 XQuartz: pbproxy: Fix compilation on case-sensitive file systems... 2008-10-23 15:01:03 -07:00
Jeremy Huddleston
3c69528064 XQuartz: Comment explaining the 0x10 flag for [e data2] 2008-10-23 11:41:22 -07:00
Jeremy Huddleston
bf561a06b2 XQuartz: Honor the Spaces preference for "When switching to an application, switch to a space with open windows for the application" 2008-10-23 11:37:13 -07:00
Jeremy Huddleston
e9fe3f36d9 XQuartz: Added missing semicolons to Localizable.strings 2008-10-21 19:36:48 -07:00
Jeremy Huddleston
08a5a333d7 XQuartz: Default dpi to 96 instead of 75 2008-10-21 11:23:42 -07:00
Jeremy Huddleston
cbc0935ef7 XQuartz: pbproxy: SIGHUP reloads preferences. 2008-10-21 11:19:06 -07:00
Jeremy Huddleston
10090a132a XQuartz: Only send mouse events while in the background if we're over a visible window.
This "breaks" xeyes but gets rid of annoying tooltips.
2008-10-21 09:11:59 -07:00
Jeremy Huddleston
22a54e4617 XQuartz: More fullscreen fixes
Start in rooted mode when enabled
  Make the hotkey cmd-alt-a behave
2008-10-21 09:07:08 -07:00
Jeremy Huddleston
f78c9fc06c XQuartz: Cleaned up keyboard init and map reload. 2008-10-20 12:23:04 -07:00
Jeremy Huddleston
a9f9fbf512 XQuartz: Fixed follow-keyboard-layout
2008-10-20 09:46:34 -07:00
Jeremy Huddleston
628cae86b4 XQuartz: More progress towards fullscreen... 2008-10-19 13:54:32 -07:00
Jeremy Huddleston
2c4b0f9615 XQuartz: Fixed missing key-equiv for Hide-Others. 2008-10-17 09:25:26 -07:00
George Peter Staplin
165cbbb90c XQuartz: pbproxy: Fix 2 bugs with the preferences.
Add dump_prefs() for instrospection.

Make prefs_get_bool a little more clear.

In get_property don't assume that the Mac realloc(NULL, 0); returns
non-NULL.  We shouldn't depend on implementation-defined behavior too
much.

Add more commentary in various spots.

Add TARGETS in the TARGETS response.  I don't know why some X11 apps
do this, but it could be something that some weird toolkit/app tests
for.

In reload_preferences add preferences synchronization, so that xpbproxy
reloads the preferences, and picks up any changes.

Fix a typo/misspelling of the sync_clipboard_to_pasteboard preference.
2008-10-16 13:09:21 -06:00
Jeremy Huddleston
ef4d37c73f XQuartz: Fixed window levels. 2008-10-15 21:26:58 -07:00
Jeremy Huddleston
bcb83eea72 XQuartz: implemented primary-on-grab and fixed clipboard-to-pasteboard 2008-10-15 14:11:18 -07:00
Jeremy Huddleston
99be3d68b6 XQuartz: Some motion made towards supporting fullscreen. 2008-10-08 18:39:41 -07:00