IME support on X11 (#1043)

* WIP: IME support for X11

* Handle text generated by IME.

* Set IME position according to the cursor position.

* Improve IME position handling.

Geometry as well as window focus changes are now handled.

* Dispatch IME strings like it's done on windows.

* Make sure not to silently drop IME errors.

* Respect `use_ime` configuration.

* Add xcb-util as dependency.

* Only update IME position if necessary.

* Formatting.

* Update xcb-imdkit-rs.

* Set IME position under the start of the cursor.

This seems to be the way it is commonly done among gui frameworks.
(Tested with Firefox for GTK and Konsole for QT).

* Update xcb-imdkit-rs.

* Handle systems only providing libxcb-util0-dev.

* Add libxcb to freebsd dependencies.

Required by xcb-imdkit-rs.

* Update xcb-imdkit-rs.

* Try to use more recent gcc on centos7.

* More recent C++ compiler on centos7 as well.

* Also setup correct env on centos7 for tests.
This commit is contained in:
HMH authored and GitHub committed 2021-08-19 20:51:56 -07:00
1 parent 98206f0bf8
commit 6404099d25
7 files changed
+147 -17

No files matched your search

+9 -8
View File
@@ -31,9 +31,10 @@ jobs:
- name: "Install Git from source"
shell: bash
run: |
yum install -y wget curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker make
yum install -y wget curl-devel expat-devel gettext-devel openssl-devel zlib-devel centos-release-scl-rh perl-ExtUtils-MakeMaker make
yum install -y devtoolset-9-gcc devtoolset-9-gcc-c++
if test ! -x /usr/local/git/bin/git ; then
cd /tmp
wget https://github.com/git/git/archive/v2.26.2.tar.gz
@@ -41,9 +42,9 @@ jobs:
cd git-2.26.2
make prefix=/usr/local/git install
fi
ln -s /usr/local/git/bin/git /usr/local/bin/git
- name: "Install curl"
shell: bash
@@ -84,10 +85,10 @@ jobs:
run: "cargo fmt --all -- --check"
- name: "Build (Release mode)"
shell: bash
run: "cargo build --all --release"
run: "source /opt/rh/devtoolset-9/enable && cargo build --all --release"
- name: "Test (Release mode)"
shell: bash
run: "cargo test --all --release"
run: "source /opt/rh/devtoolset-9/enable && cargo test --all --release"
- name: "Package"
shell: bash
run: "bash ci/deploy.sh"
@@ -96,7 +97,7 @@ jobs:
run: |
mkdir pkg_
mv ~/rpmbuild/RPMS/*/*.rpm pkg_
- name: "Upload artifact"
uses: actions/upload-artifact@master