Commit graph

313 commits

Author SHA1 Message Date
Jamey Sharp
a1168e11ec Add note in man-page that XListFontsWithInfo is not thread-safe.
_XReply drops the Display lock, so the value of dpy->request may change
before _XReply is called again.

I discovered this by inspection a year or two ago. I'm pretty confident
in the claim, and nobody has come up with an argument for why it's safe
despite appearances.
2006-11-21 17:52:34 -08:00
Jamey Sharp
67abe02426 Bug #8622: Fix response processing order for threaded apps
Previously, process_responses (the common code for _XReply,
_XReadEvents, and _XEventsQueued) took the current request sequence
number as an argument, and did some highly complicated processing to
attempt to process responses in order across threads.  This didn't
actually work.

Now, process_responses handles responses in order, by adding condition
variables to the list of outstanding requests in
dpy->xcb->pending_requests, and blocking on them when those requests
should get processed to allow _XReply to process them; if actually
called from _XReply, it returns when _XReply's request should get
processed.  _XReply broadcasts on the condition variable after it has
read its reply and re-acquired the display lock.

Another great commit brought to you by Jamey Sharp, Josh Triplett, the
Gobby collaborative text editor, conspy, and ridiculous amounts of SSH
forwarding.

Signed-off-by: Josh Triplett <josh@freedesktop.org>
Signed-off-by: Jamey Sharp <jamey@minilop.net>
2006-11-18 15:39:26 -08:00
Lars Knoll
941f02ede6 Don't hold the display lock around callbacks to the application.
This fixes an XCB locking assertion failure, particularly with emacs.
2006-11-08 12:17:41 -08:00
Diego 'Flameeyes' Pettenò
e494ecaac1 Add xcb-xlib dependency to x11.pc when built against XCB. 2006-11-07 09:32:00 -08:00
Eric Anholt
2302008a37 XCB: Allocate the right amount of memory for dpy->lock_fns.
Fixes a crash I was experiencing on startup of anything using gdk.
2006-11-06 17:11:42 -08:00
Jamey Sharp
5f860655be Release libX11 1.1 RC2 (1.0.99.2). 2006-11-02 17:55:31 -08:00
Benno Schulenberg
a6f4bbf7b1 nls (en_US): remove long compositions that override shorter (bug #2286)
Remove long compositions that override (or get overriden by) later shorter
compositions, e.g. a four-key compose sequence that gets overriden by a
later three-key compose sequence.
2006-10-29 03:10:30 +03:00
Benno Schulenberg
0280bf11ef nls: remove shadowed compose entries (bug #2286)
Remove compose entries shadowed by others later on.
2006-10-29 03:08:36 +03:00
Benno Schulenberg
d118f2b1ef nls: remove duplicate compose entries (bug #2286)
Remove a bunch of duplicate entries from various Compose files.
2006-10-29 03:07:15 +03:00
Caolan McNamara
5e1cc2fe20 XKB geometry: fix leaks in GetKeyboardByName (bug #8099)
Don't leak the name and value of every property we parse, as well as the
name of every colour.
2006-10-29 02:46:15 +03:00
Matthias Hopf
686bb8b35a Fix double open of compose file.
Issue found by Kees Cook <kees@canonical.com>.
2006-10-18 14:25:04 +02:00
Jamey Sharp
d3e65cb8cd XCB: check for and handle I/O errors in _XGetXCBBuffer. 2006-10-14 21:25:10 -07:00
Jamey Sharp
256eba6b40 XKB bugfix: SyncHandle must be called after UnlockDisplay, not before. 2006-10-11 00:06:50 -07:00
Jamey Sharp
1eedf1bd03 Add correct Display locking to XKB functions.
Some XKB functions didn't correctly call LockDisplay or UnlockDisplay.
This patch fixes at least some instances of that problem.

Thanks to Magnus Kessler <Magnus.Kessler@gmx.net> for finding these bugs
and proposing a fix, which this patch is based on.
2006-10-10 23:03:28 -07:00
David Nusinow
e17c2cbe9f Dynamically generate internal manpage section using __libmanpagesuffix__ so that it actually matches the section if you don't use 3X11 2006-10-10 22:11:05 -04:00
Jamey Sharp
e53557da96 Release libX11 1.1 RC1 (1.0.99.1). 2006-10-07 21:07:35 -07:00
Jamey Sharp
bf237409c5 As XCB support is about to be released in libX11, stable is now subsumed by master. 2006-10-07 21:07:16 -07:00
Jamey Sharp
ba477191c6 XCB: Don't rely on having the definition of struct xcb_setup_t available. 2006-10-07 03:48:13 -07:00
Jamey Sharp
117b55cbd0 xcb_poll_for_event no longer takes an 'int *error' out-parameter. 2006-10-06 16:40:27 -07:00
Josh Triplett
caaa8e8a55 Actually ship Xxcbint.h 2006-10-06 16:26:11 -07:00
Josh Triplett
7b027e53b5 Clean ChangeLog only in "make maintainer-clean", not "make clean"
ChangeLog requires a git repo to generate; make clean and make distclean
shouldn't get rid of it.
2006-10-06 16:25:50 -07:00
Josh Triplett
cab22e02e7 Add ChangeLog and "make dist"-generated files to .gitignore 2006-10-06 16:24:58 -07:00
Josh Triplett
e4c7cfdee4 Add manual pages for XGetXCBConnection and XSetEventQueueOwner 2006-10-06 15:53:27 -07:00
Josh Triplett
688224cea9 Remove unnecessary prototype for _XFreeDisplayStructure in xcb_disp.c 2006-10-06 13:41:16 -07:00
Josh Triplett
ab728ca372 XCL is dead; long live Xlib/XCB
Rename all instances of "XCL" to Xlib/XCB-derived names.

The only user-visible change: rename the include file <X11/xcl.h> to
<X11/Xlib-xcb.h>; programs will need to change their #include lines to match.

Remove the XCL cast inlines from Xlib-xcb.h.
2006-10-06 12:36:39 -07:00
Josh Triplett
5b73093203 Add XCB developers to AUTHORS 2006-10-06 11:33:49 -07:00
Josh Triplett
1cb71ff139 Fix email addresses in README 2006-10-06 11:23:00 -07:00
Jamey Sharp
12f0386692 XCB: Handle all responses in order of monotonically increasing sequence number. 2006-10-06 02:13:21 -07:00
Josh Triplett
f392680273 Actually install x11-xcb.pc, and ship x11-xcb.pc.in 2006-10-06 01:12:42 -07:00
Jamey Sharp
f1fcad2e3f XCB: correctly handle failure to connect to X server. 2006-10-05 18:32:29 -07:00
Josh Triplett
e754b3b078 Split public Xlib/XCB functions into libX11-xcb
We can never change the libX11 soname, and we don't want to commit to never
changing the public Xlib/XCB functions, so split them into a separate library
libX11-xcb.  This also means that a program linked solely against libX11
should work with either Xlib or Xlib/XCB, which will make life easier for
package maintainers.

Signed-off-by: Josh Triplett <josh@freedesktop.org>
Acked-by: Jamey Sharp <jamey@minilop.net>
2006-10-05 17:44:22 -07:00
Jamey Sharp
ffd367f708 No longer #include Xmd from xcl.h: we do not need it. 2006-10-04 17:16:46 -07:00
Jamey Sharp
3aff149d42 XCB: Revert locking to simple wrapper around libX11's normal locks.
No more recursive mutexes, no more banging XCB's I/O lock in-place, and
reduces the differences between the previous stable release and an
XCB-enabled one. Sadly, Xlib's pluggable thread functions work again
too, now. I apologize to the world.
2006-10-04 16:58:32 -07:00
Jamey Sharp
8ff122fb52 Link explicitly against XCB's Xlib compatibility functions. 2006-09-25 04:54:52 -07:00
Jamey Sharp
bde3cd123d libxcb now installs header files in <xcb>, not <X11/XCB>. 2006-09-25 04:13:20 -07:00
Ian Osgood
87d00207f5 Track XCB's "Great Renaming". 2006-09-24 23:39:01 -07:00
Jamey Sharp
85a5e98dff Quit using XCBGetQueuedRequestRead. 2006-09-12 23:02:42 -07:00
Tollef Fog Heen
a61936fc4e nls: use _XlcUtf8Loader for en_US (bug #7982)
Use _XlcUtf8Loader instead of _XlcUnicodeLoade,r bringing it into line with
every other locale.
2006-08-30 00:05:54 +03:00
Alan Coopersmith
abcc7e1865 When opening display, if LOCALCONN fails, fall back to UNIXCONN, then TCPCONN
Port to X11R7 of Sun bug fix 4061225 by Alex Chen for X11R6 - when failing to
connect on a named pipe, try a Unix socket first, to better support people who
replace their X servers with ones that don't support named pipe transport.
<http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=4061225>
2006-08-23 18:49:30 -07:00
Mark Brown
1ddc44c1ca Sun bug 1149809: Document event delivery when grab is terminated. 2006-07-27 19:17:10 -07:00
Dennis Arellano
171107b03a Sun bug 4091271: XGetWindowProperty is missing a crucial prop_return description
Document that 32-bit format properties are always returned in arrays of type
long, even on systems where long is 64-bits.
<http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=4091271>
2006-07-27 18:47:06 -07:00
Alan Coopersmith
8309efe655 Add support for "make lint" to check code with lint/sparse/etc. 2006-07-24 15:52:00 -07:00
Alan Coopersmith
931e02fbd1 ANSIfy some static function definitions 2006-07-24 15:50:52 -07:00
Alan Coopersmith
20b7abcaac Fix sparse warning: Using plain integer as NULL pointer 2006-07-24 15:01:40 -07:00
Alan Coopersmith
d158ab2993 Remove unused variable 2006-07-24 14:00:24 -07:00
Eric Anholt
3037700037 Bug #7188: Fix the documentation of XUrgencyHint (not UrgencyHint). 2006-07-21 18:56:04 -04:00
Matthieu Herrb
4eba45879a set GIT_DIR=${srcdir}/.git for git-log 2006-07-16 10:55:39 +02:00
Aaron Plattner
2d426d1f26 Add a .PHONY to ensure the ChangeLog isn't stale.
Setting the ChangeLog rule as phony forces it to be re-run even when the
ChangeLog file already exists. Research indicates .PHONY is portable to BSD and
Solaris make.
(cherry picked from b8a98809ed commit)
2006-07-11 13:28:14 -07:00
Aaron Plattner
b8a98809ed Add a .PHONY to ensure the ChangeLog isn't stale.
Setting the ChangeLog rule as phony forces it to be re-run even when the
ChangeLog file already exists. Research indicates .PHONY is portable to BSD and
Solaris make.
2006-07-11 13:27:49 -07:00
Mayank Jain
8f2be66089 add Indian language locales
Add as, kn, ml, or, ur, and te locales.
2006-07-11 19:42:47 +01:00