Граф коммитов

25 Коммитов

Автор SHA1 Сообщение Дата
fujiwarat 3172c3b23f RHEL code reviews 2018-10-31 17:42:38 +09:00
fujiwarat 8d302c853f RHEL code reviews 2018-07-24 16:04:31 +09:00
fujiwarat 371535b981 util/IMdkit: Fix the range of memset() in i18nIc.c
BUG=https://github.com/ibus/ibus/issues/1891

Review URL: https://codereview.appspot.com/320010043
2017-01-20 18:51:42 +09:00
Hodong Kim f6ba337abc Fix typo in util/IMdkit/IMdkit.h and Xi18n.h
BUG=https://github.com/ibus/ibus/pull/20
TEST=util/IMdkit/libIMdkit.la

Review URL: https://codereview.appspot.com/232980043
Patch from Hodong Kim <hodong@cogno.org>.
2015-04-28 11:32:56 +09:00
Klemens Baum 576ebc3633 IMdkit: Track window property offsets correctly
The XIM specification requires that XIM tranports over 20 bytes in size
be transferred via window properties. The sender calls XChangeProperty
with PropModeAppend, and instructs the recipient via ClientMessage to
call XGetWindowProperty with delete set to True.

Naive implementations exhibit a race condition because the receiver
could have written more data in the meantime, and XGetWindowProperty
only deletes the property when bytes_after_return is zero. If
bytes_after_return is non-zero, it is necessary to use an offset when
reading from the property again.

To ensure that the property data does not grow indefinitely, Xlib
recycles 21 Atoms in round-robin fashion. Because the XIM specification
does not limit the number of Atom names of the form "_clientXXX" to be
used for data transfer over window properties, an XIM server should be
able to keep of track any number of Atoms, remembering the offset into
each property.

This patch implements correct tracking of property offsets.

Signed-off-by: Klemens Baum <klemensbaum@gmail.com>
Reviewed-by: Keith Packard <keithp@keithp.com>

rhbz#1175595
BUG=https://code.google.com/p/ibus/issues/detail?id=1751
TEST=client/x11/ibus-x11

Review URL: https://codereview.appspot.com/176190044
Patch from Klemens Baum <klemensbaum@gmail.com>.
2014-12-18 16:27:23 +09:00
fujiwarat 1bdcf218ee Update source files with LGP 2.1 according to COPYING.
BUG=http://code.google.com/p/ibus/issues/detail?id=1424
TEST=rpmlint

Review URL: https://codereview.appspot.com/12526043
2013-08-09 13:48:17 +09:00
Peng Huang 14b7d1a071 Add git.mk from gtk+ project, Use it to update .gitignore
BUG=none
TEST=make

Review URL: http://codereview.appspot.com/4280050
2011-03-16 10:01:18 -04:00
Ahmad Sharif b2c7173b30 Fix compiler warnings in util/IMdkit/.
BUG=1201

Review URL: http://codereview.appspot.com/4171046
Patch from Ahmad Sharif <asharif@chromium.org>.
2011-02-12 23:38:35 +09:00
Peng Huang cbe5540dd8 Support gtk3 2010-06-05 21:28:04 +08:00
Peng Huang 9026db8da8 Refine some build options. 2010-05-15 20:02:19 +08:00
Peng Huang 3b2f45a9ab Add X11_CFLAGS and X11_LIBS 2010-04-11 17:02:55 +08:00
Peng Huang 7f93fe7650 Update copyright. 2010-01-10 03:29:59 +08:00
Peng Huang 8b2b2613e1 Add Copying for Red Hat 2009-10-23 14:42:16 +08:00
Peng Huang 95493e7c2a Change file header 2009-10-23 14:17:30 +08:00
Huang Peng e1c8775b08 Fix some compile problems with Sun C compiler. 2009-03-02 13:05:22 +08:00
Huang Peng aedad1ea0a re-implement ibus in c language. 2009-02-05 10:39:56 +08:00
Huang Peng 9c72c9235e Fix coding style. 2008-10-16 10:15:18 +08:00
Huang Peng 998cdda740 Do not discard unread data from XGetWindowProperty 2008-10-15 22:20:47 +08:00
Huang Peng 08c01a29e7 Fix make dist error. 2008-09-30 08:13:55 +08:00
Huang Peng 7f04c7006b Change internal gconf install location. 2008-09-27 11:39:34 +08:00
Huang Peng 3fe32053f9 Do install pygconf files without --enable-pygconf 2008-09-17 21:43:56 +08:00
Huang Peng 869cecf842 Add --enable-pygconf option. 2008-09-17 21:00:42 +08:00
Huang Peng ef96e9fec0 Include gconf python binding from gnome-python2. 2008-09-17 20:24:27 +08:00
Huang Peng 0ac5c124f8 Add header. 2008-08-22 16:31:16 +08:00
Huang Peng dd63a1fc03 ibus-x11 can work now. 2008-08-16 15:46:21 +08:00