Commit graph

55 commits

Author SHA1 Message Date
Christoph Pfister
2bef065b70 X.Org Bug #21117: crash in get_rotate_fontname (omGeneric.c)
http://bugs.freedesktop.org/show_bug.cgi?id=21117

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-04-27 22:35:29 -07:00
Theppitak Karoonboonyanan
128daff442 Thai XIM not retrieve MB surrounding on UTF-8 LC
On th_TH.UTF-8 locale, Thai XIM rejects all combining characters for GTK+ apps
that use X Input Method.

This is because GTK+ imxim immodule passes surrounding text in locale encoding,
which is UTF-8 for UTF-8 locales. But current Thai XIM in Xlib assumes the
multi-byte StringConversionText response for the StringConversionCallback to
always be TIS-620, by retrieving a single byte and using it as-is.

If the Thai XIM tries to convert the multi-byte text based on locale codeset
before using it, it will work again.

X.Org But 12759 <http://bugs.freedesktop.org/show_bug.cgi?id=12759>

Signed-off-by: Theppitak Karoonboonyanan <thep@linux.thai.net>
Signed-off-by: Julien Cristau <jcristau@debian.org>
2009-04-13 17:27:03 +01:00
Theppitak Karoonboonyanan
e09f0d227f Thai XIM not filters when NumLock or CapsLock is on
The Thai XIM component in libx11 activated on 'th*' locales normally filters
input sequence according to orthographic rules. However, when NumLock/CapsLock
is on, this stops working. All sequences are passed through.

This is caused by missing masks in _XimThaiFilter(), which normally screens out
certain special keys from entering orthographic rules. Unfortunately, this
included events with NumLock/CapsLock on. Negating the masks from the check
allows the events to be tested by the rules.

X.Org Bug 12517 <http://bugs.freedesktop.org/show_bug.cgi?id=12517>

Signed-off-by: Theppitak Karoonboonyanan <thep@linux.thai.net>
Signed-off-by: Julien Cristau <jcristau@debian.org>
2009-04-13 17:26:26 +01:00
Alan Coopersmith
c9f84af591 Remove ifdef checks for macII left over from ancient A/UX 3.0 support
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-03-17 14:59:16 -07:00
Paulo Cesar Pereira de Andrade
1bd2966ed8 patches to avoid gcc warnings for libX11 (#4)
Author is Peter Breitenlohner <peb@mppmu.mpg.de>
Bug #17946, attachment #19443

This patch avoids the gcc warning
	../../../../libX11-1.1.5/modules/im/ximcp/imDefLkup.c:223: warning: passing arg 1 of `_XimProcSyncReply' from incompatible pointer type
(same as already done at other places)

BTW: what is the difference between XIM (the type of ic->core.im)
and Xim ?
2009-01-29 20:25:15 -02:00
Paulo Cesar Pereira de Andrade
f16dd6af3e patches to avoid gcc warnings for libX11 (#3)
Author is Peter Breitenlohner <peb@mppmu.mpg.de>
Bug #17946, attachment #19441

This patch avoids the two gcc warnings
	../../../../libX11-1.1.5/modules/im/ximcp/imRm.c:413: warning: assignment discards qualifiers from pointer target type
	../../../../libX11-1.1.5/modules/im/ximcp/imRm.c:450: warning: assignment discards qualifiers from pointer target type

Note, that this as a rather crude fix of the problem (and it is really a
shame to cast name_table to non-const).

The right solution would be to declare XIMValuesList.supported_values
(in include/X11/Xlib.h) as 'const char **' (or '_Xconst char **').
This will, however, require extensive modifications in various places.
2009-01-29 20:22:21 -02:00
Paulo Cesar Pereira de Andrade
a1977883c9 Janitor: Correct some gcc/sparse warnings.
Most remaining warnings are about XIM/Xim to/from conversion
and discarding const from pointers.
2009-01-29 15:01:06 -02:00
Paulo Cesar Pereira de Andrade
8ba0ca32a6 Janitor: ansification, make distcheck, compiler warnings.
Only convert to use "ansi prototypes" the functions warned from
compilation with "./autogen.sh --prefix=/usr", on a Linux computer.

  Also, only address "trivial" compiler warning fixes in this commit.

  The new .gitignore is the output of a command like:
% find . -name .gitignore -exec cat {} \; | sort | uniq
and only the toplevel .gitignore file was kept.
2009-01-28 20:31:42 -02:00
Stefan Dirsch
67e34d7a82 Added remaining xlib patch required for gb18030 support (#1573). 2008-11-22 19:40:54 +01:00
Stefan Dirsch
55782a0a1f Added remaining hunk of Egbert's patch to prevent XIM deadlocks (#1182). 2008-11-22 17:53:06 +01:00
Colin Harrison
ad6008a0c9 Fix copy/paste typo in imLcPrs
Signed-off-by: James Cloos <cloos@jhcloos.com>
2008-11-06 17:48:21 -05:00
Adam Jackson
0f0168ad18 Fix leak in _XimXGetReadData
Spotted by Denis Dzyubenko
2008-11-06 14:54:13 -05:00
Adam Jackson
f6af6dd2f7 Bug #14898: Don't abuse the sprintf() implementation.
The thing you're printing into should not itself appear in the list of
things to print from, that's bad juju.  Just use strcat().
2008-06-24 13:16:53 -04:00
Alan Coopersmith
cf49e53701 Strip whitespace from end of lines in source files 2008-06-17 14:41:17 -07:00
Adam Jackson
a7f85567a3 Bug #15884: Remove useless sleep()'s from the connection code.
For network transports, there's enough delay in the network layer
already without adding more.  For local transports, just hurry up
and fail if the server isn't there.
2008-05-13 10:28:39 -04:00
Theppitak Karoonboonyanan
0b6682303e IM: Respect XMODIFIERS for Thai locale (bug #15719)
When looking at Thai input methods, make sure XMODIFIERS is checked
before jumping straight into built-in Thai processing, so external XIM
servers such as SCIM can be used with Thai.
2008-04-28 11:51:25 +03:00
Søren Sandmann Pedersen
1a1a42a3ca XIM: Fix a hand when switching input context.
Red Hat bug #201284.
2008-02-24 20:03:35 -05:00
Yann Droneaud
24527c92fd XIM: Properly initialise client event
Make sure all ClientMessage fields are initialised to 0 before we send it.
2007-10-24 19:26:07 +03:00
Jamey Sharp
c2f88cdf5c Fix locking in _XimGetWindowEventmask.
Now that XFilterEvent drops the Display lock before invoking callback
functions, _XimGetWindowEventmask is called without the lock held. So
when it called _XGetWindowAttributes, a variant of XGetWindowAttributes
that does not lock the Display, Xlib/XCB would assert:

xcb_xlib.c:50: xcb_xlib_unlock: Assertion `c->xlib.lock' failed.

Should fix Gentoo #156367, Ubuntu #87947, Debian #427296. And others?
2007-06-10 16:19:59 -07:00
Tilman Sauerbeck
91b02b8064 More constification. 2007-05-17 19:07:34 +02:00
Tilman Sauerbeck
0e8d9ca47d More constification. 2007-05-16 19:36:23 +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
Julien Cristau
bc80f9fe3c Bug #9279: Fixed a file descriptor leak. 2007-03-18 13:14:48 +01: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
Matthias Hopf
abda4d223e Update to final Compose cache directory location. 2006-06-29 18:59:57 +02:00
Matthias Hopf
40a64c61f8 Fix alignment of trees and wide chars in the cache. 2006-06-29 17:41:41 +02:00
Matthias Hopf
f442dcaa56 First (dummy) entry of compose caches was not initialized and thus contained varying garbage. 2006-06-28 19:17:03 +02:00
Matthias Hopf
1f4c9893ad Bug #3104: Compose table cache for faster X11 application starts. 2006-06-16 16:31:37 +02:00
Matthias Hopf
4fe22647e6 Bug #3104: Compose table cache for faster X11 application starts. 2006-06-16 16:31:37 +02:00
Matthias Hopf
9354351fcb Bug #3104: Compose table cache for faster X11 application starts. Part 1: Pointerless compose data structure, using indices instead of pointers, needed for mmap()ing data structure. 2006-06-16 16:31:37 +02:00
Daniel Stone
d6fba1f44d im: add Braille input method (#6296)
Bug #6296: Add a Braille input method.  (Samuel Thibault)
2006-06-02 02:24:25 +03:00
Jamey Sharp
f25b4b00e1 Move .cvsignore to .gitignore. 2006-02-19 12:28:41 -08:00
Jamey Sharp
881467b303 Merge the X11 and BIGREQS package sets: they were used in exactly the same places. 2006-02-19 02:14:11 +00:00
Kevin E Martin
9e96dbc343 Add check and cflags for malloc(0) returning NULL. 2005-12-03 04:41:47 +00:00
Alan Coopersmith
cd9c9936b4 Add -D flags to clear various warnings (Stefan Dirsch) 2005-07-30 19:15:16 +00:00
Keith Packard
75fd5ae6e4 Add missing Makefile.am to lib/X11/modules 2005-07-15 04:27:32 +00:00
Keith Packard
6d84a8b132 Move i18n modules to top-level so they can be built in the right order (before xlib for non-loadable, after xlib for loadable).
Link i18n modules against xlib to resolve Xlib symbols used by them.
2005-07-15 04:08:51 +00:00
Alexander Gottwald
45f40126a7 Add $(top_srcdir)/src to include list 2005-07-14 19:50:00 +00:00
Alan Coopersmith
419304cde2 Add missing backslashes to xlocale_la_SOURCES 2005-07-13 02:41:36 +00:00
Keith Packard
d14cc5c896 Ammend AM_CFLAGS with all needed includes; cannot figure out an easy way to automate this. 2005-07-11 20:32:55 +00:00
Keith Packard
6e752ea120 Enable loadable i18n modules, making them configurable on the configure command line.
Clean up conditionals for XKB, XCMS, XLOCALEDIR
Create new lib directory for locale modules in ${X11_LIBDIR}/locale/lib. Add this to the default XLOCALEDIR search path.
Create separate X11_LOCALEDATADIR variable pointing at ${datadir}/X11/locale for installing locale data.
Split out xcms, xkb, xlibi18n sources from main xlib bits so they can be conditionally included more easily. Lots of source files have been moved with this step; the result seems like it might be easier to maintain.
Display message at end of configure script with selected options.
Fix manual building with cpp to add -traditional in cpprules.in. This isn't conditionalized at all, so it will break on systems not using GNU cpp.
2005-07-11 08:29:18 +00:00
Daniel Stone
b46cf0d879 Fix segfault when _XimProtoCreateIC() fails to create a context; Debian #239991. (Chung-chieh Shan) 2005-07-10 22:37:33 +00:00
Alexander Gottwald
fd5f58e0ba Replace <X11/Xtrans.h> with <X11/Xtrans/Xtrans.h>
Copy Xtrans.h to exports/include/X11/Xtrans only
2005-06-09 15:52:02 +00:00
Søren Sandmann Pedersen
7eee605e3a - For now put xtrans in X11/Xtrans/X11, since libX11 is looking for it in <X11/...>
- For Xcomposite and Xdamage, don't link the build system out of the xc tree
- Link the public X11 headers into their own directory
- Add links to XKeysymDB and XErrorDB
- Add links to all the Xlib man pages
- Add links to the lcUniConv subdirectory
- Conditionally include config.h in Xlib source
2005-05-13 22:53:36 +00:00
Alan Coopersmith
0ce5950a08 Bugzilla Bug 2006 (https://bugs.freedesktop.org/show_bug.cgi?id=2006) Patch #2031 (https://bugs.freedesktop.org/attachment.cgi?id=2031) XEmbed client doesn't receive key events from XIM: Use | to set a bit, not &. Patch by Hidetoshi Tajima <hidetoshi.tajima@sun.com>. 2005-03-08 02:53:36 +00:00
Egbert Eich
642cd269f9 Removed #ifdef'ed out code together with the comment explaining why it was #ifdef'ed out.
Fixed typo.
Added comment to a changed that's been committed with one of the previous commits.
2004-12-14 08:59:20 +00:00
Alexander Gottwald
f3d83ee153 Bufzilla #1802, http://freedesktop.org/bugzilla/show_bug.cgi?id=1802 Added mingw (Win32) port 2004-11-15 15:06:54 +00:00
Egbert Eich
1b900b59cb Made handling of DevelDrivers for x86-64 more conformant to other platforms.
Compress all font encodings (Stefan Dirsch).
Fixed warnings.
Turn on forwarding XNSpotLocation event to XIM server in OffTheSpot and Root mode (bugzilla #1580, James Su).
Added another compose key combination for the Euro symbol (Stefan Dirsch).
Added support for UTF-8 in ja_JP, ko_KR and zh_TW locales (Mike Fabian).
Changed default encoding for ru from KOI8-R to ISO8859-5 (Mike Fabian). This is the encoding that is also used by glibc. We may break other libcs - lets see who complains.
Added explanation for DESTDIR to install to a different directory than /.
Added some early bailouts to atiprobe if PCI structure pointer is NULL to prevent sig11.
XV support doesn't depend on 2D acceleration any more. This patch removes this limitation from the NSC driver. This is a patch that I have committed to XFree86 a while ago but never ported over to X.Org. Matthieu Herrb contributed some build fixes.
Fixing SetDPMSTimers() so that DPMS*Time == 0 disables the appropriate timer. This takes advantage of the fact that TimerSet() with a timeout argument 0 behaves like TimerCanel().
Use /dev/xconsole (named pipe) or devpts for system logger (Werner Fink).
Create missing links for backward compatibility to XFree86 (Stefan Dirsch).
Changed comment to mention xorg.
Changed cursor for the 'kill' action from XC_draped_box to XC_Pirate. If you don't like it we can change it back (original author unkown).
Added 'pic' to the man page rendering command pipeline (Werner Fink).
Added missing return value (Stefan Dirsch, Roland Mainz)
2004-10-18 14:21:45 +00:00
Egbert Eich
2e02a95dcc Unregistering events in XSelectInput() when unregistering IM filter callbacks may be a bad idea as others may be interested in this event. Removed the call to XSelectInput() altogether as we are in root window anyway (Lubos Lunak).
Fix size of a variable that gets assigned the value of SmartScheduleTime (long) to long. This should help to prevent smart scheduler lockup on 64 bit systems due to overruns (Andreas Schwab).
2004-09-15 09:05:22 +00:00
Egbert Eich
2d3afb68a1 Fixed some lockups in XIM code when the application is running with multi thread support. These lockups occur deep down in XFilterEvents() which itself locks when another Xlib function gets called that also locks. This fixes two instances by separating those Xlib functions into an internal (non-locking) call and a locking wrapper that is used as an external function. There may be several other such instances therefore another more general patch is eventually required (Bugzilla #1182). 2004-08-31 11:37:03 +00:00