Commit graph

391 commits

Author SHA1 Message Date
Dennis Arellano
d9954c6f6f Add man pages for XKB API's
Man pages originally written for X11R6.4 integration to Solaris 7 11/99
Sun bug id 4258344: Add new XKB API manpages for 6.4 upgrade
<http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=4258344>

(Volunteer needed to convert prototypes in man pages to ANSI C style...)
2007-04-27 23:50:45 -07:00
Tilman Sauerbeck
f640a49b5e Markup tweak for XOpenIM. 2007-04-20 18:39:59 +02:00
Julien Cristau
e972b0bb25 Bug #9695: Fixed a few argument types in the XOpenIM manpage. 2007-04-20 18:35:09 +02:00
Julien Cristau
b4e2276f32 Bug #9697: Fixed documentation of XVisualInfo struct.
The "depth" member was said to be unsigned int, but it's signed.
2007-04-20 18:28:52 +02:00
Julien Cristau
4068f3dae0 Bug #9696: refer to XDefineCursor() instead of XDefineCusor(). 2007-04-20 16:41:21 +02:00
Tilman Sauerbeck
603c2f88d4 Use unistd.h to get getresuid() and friends.
This works since we now have _GNU_SOURCE defined.
2007-04-07 14:42:55 +02:00
Tilman Sauerbeck
0300f295bb Bug #10562: Define _GNU_SOURCE on glibc systems. 2007-04-07 14:27:12 +02:00
Tilman Sauerbeck
a225a0be48 For nls/*.pre, allow people to comment lines by starting them with '##'.
This fixes a bunch of cpp warnings from nls/en_US.UTF-8/Compose.pre.
Fixing that file would have been a larger diff, and using ## may be
nicer to use anyway.
2007-04-06 12:46:25 +02:00
Tilman Sauerbeck
1c75a94790 Bug #10475: Fixed lots of char*/const char* mixups.
I didn't fix all of them, as that would require touching
public headers.
2007-04-06 11:59:31 +02:00
Matthias Hopf
680dd50193 Fix 64bit issues with reallocation. 2007-04-05 11:54:26 +02:00
Tilman Sauerbeck
4d38aeaca4 Fixed a few warnings. 2007-04-04 18:41:18 +02:00
Matthieu Herrb
7dc7ef398b Multiple integer overflows in the XGetPixel() and XInitImage functions
CVE-2007-1667
2007-04-03 15:39:52 +02:00
David Baron
0284b14434 Bug #7703: Fixed XSetSizeHints() et al wrt use of uninitialized data.
Now only those fields of the respective hint struct are set that
are actually valid in the input data.
The changed functions are:
XSetSizeHints(), XSetWMHints() and XSetWMSizeHints().
2007-03-30 17:07:46 +02:00
Tilman Sauerbeck
0994faa0c7 Fixed the change from the previous SendEvent commit.
Testing a different patch than the one you commit is bad, right?
2007-03-29 17:31:25 +02:00
Tilman Sauerbeck
398d75528a Bug #10292: Fixed a memory leak related to XOpenDisplay() in the XCB code. 2007-03-28 22:23:44 +02:00
David Baron
ab0bcd0795 Bug #7713: Initialize all of the event's fields before sending it. 2007-03-28 22:21:40 +02:00
Julien Cristau
bc80f9fe3c Bug #9279: Fixed a file descriptor leak. 2007-03-18 13:14:48 +01:00
Daniel Stone
c9e28e05ae include: don't distribute XlibConf.h
Since XlibConf.h is built by configure, don't distribute it.
2006-12-16 00:47:23 +02:00
Jeremy C. Reed
dd1705ced2 Merge branch 'master' of git+ssh://git.freedesktop.org/git/xorg/lib/libX11 2006-12-14 14:23:20 -06:00
Jeremy C. Reed
129bbb9f91 For NetBSD, define the XTHREADLIB and XTHREAD_CFLAGS. 2006-12-14 14:21:19 -06:00
Daniel Stone
769b9854f7 Makefile.am: make ChangeLog hook safer
Make ChangeLog hook as safe as possible.
(cherry picked from f5d6a3d24095c7ffed86705995d0874c885e7676 commit)
2006-12-06 19:11:35 +02:00
Josh Triplett
8a8185a649 Add autogen.sh to EXTRA_DIST. 2006-11-30 18:34:06 -08:00
Jamey Sharp
efe817f95e Release libX11 1.1.1. 2006-11-30 17:58:35 -08:00
Ross Combs
f637a5b031 Debian bug #354315: Clarify return value in XGetWindowAttributes man page
This man page does not discuss the actual return values of the
function, but says they are of type "Status".  One might assume
that this means you could compare it with the "Success" macro.
One would be wrong.

The X functions seem to have two three types representing status.
If it is an "int" there are a number of error codes or "Success"
which can be compared against.  If it is a bool, the result can be
compared with "True" or "False".  If the return type is "Status" it
appears that the return type is either 0 or 1.  Unfortunately the
value for Success is zero, so it is important to distinguish
between the first two types of return values and the third;
otherwise the conditional will be inverted.

XGetWindowAttributes() is one of the functions which returns zero
for failure.  The man page should make this clear.
2006-11-25 14:54:06 -08:00
Jamey Sharp
c6a0b0f18e Bug #9154: Always process an event for _XReadEvents, even if an error occurs
Previously, process_responses (in the wait_for_first_event case called
from _XReadEvents) considered any return from xcb_wait_for_event
sufficient to think it had processed an event. If xcb_wait_for_event
returned an error, and no more events occurred before process_responses
called xcb_poll_for_event, process_responses would try to return with
dpy->head NULL, and would fail an assertion for the _XReadEvents
postcondition. Now, process_responses continues using xcb_wait_for_event
until it gets an event.
2006-11-25 14:23:45 -08:00
Tilman Sauerbeck
d56e78acce Bug #9153: Fix access to freed memory.
The fix for bug #8622 introduced a smaller bug where _XReply would
read memory shortly after freeing it. This patch caches the needed
value in a stack-allocated variable before the heap-allocated memory
is freed.
2006-11-25 05:29:31 -08:00
Josh Triplett
934ca763bb libx11 doesn't use inputproto in public headers; don't require it in x11.pc
Based on a Debian patch.
2006-11-24 19:57:58 -08:00
Josh Triplett
4255997ef2 Release libX11 1.1 2006-11-23 07:19:32 -08:00
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