The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
SDL2 + XIM problem & patch
ageldama


Joined: 26 Aug 2015
Posts: 3
Location: Seoul, ROK
Hi, I'm John.


Recently I have switched my old codes to SDL2 from SDL-1.2. But it seemed SDL2 support XIM properly.


Here's my environments and test codes...

* Archlinux, Xorg (1.17.2-4 xorg-server), i3wm, nabi-XIM -or- ibus (1.5.11-1) (locale = en_US.UTF-Cool

* Ubuntu 14.04, ibus. (locale = ko_KR.UTF-Cool

* Xlib/XIM test: https://github.com/ageldama/xlib-xim-hello

* SDL-1.2 test: https://github.com/ageldama/sdl12-unicode-text-input-example

* SDL-2 test: https://github.com/ageldama/sdl2-unicode-text-input-example


..SDL-1.2, SDL-2 test-apps are fine with OSX/Windows IMEs.

(and SDL-1.2 is fine with Xorg/X11 + ibus/nabi... too)



I have made simple patch and I attach it to this mail.

(See attached file or this link: https://gist.github.com/ageldama/6c713311c6cadd7bb607 )


I'll be glad if you apply this to next-release of SDL-2. :-)



Thanks.
SDL2 + XIM problem & patch
ageldama


Joined: 26 Aug 2015
Posts: 3
Location: Seoul, ROK
Sorry TYPO:

   But it seemed SDL2 support XIM properly.
  --> But it's not seemed SDL2 support XIM properly.


Thanks!


2015년 8월 26일 (수) 오후 7:06, Jong-Hyouk Yun님이 작성:

Quote:
Hi, I'm John.


Recently I have switched my old codes to SDL2 from SDL-1.2. But it seemed SDL2 support XIM properly.


Here's my environments and test codes...

* Archlinux, Xorg (1.17.2-4 xorg-server), i3wm, nabi-XIM -or- ibus (1.5.11-1) (locale = en_US.UTF-Cool

* Ubuntu 14.04, ibus. (locale = ko_KR.UTF-Cool

* Xlib/XIM test: https://github.com/ageldama/xlib-xim-hello

* SDL-1.2 test: https://github.com/ageldama/sdl12-unicode-text-input-example

* SDL-2 test: https://github.com/ageldama/sdl2-unicode-text-input-example


..SDL-1.2, SDL-2 test-apps are fine with OSX/Windows IMEs.

(and SDL-1.2 is fine with Xorg/X11 + ibus/nabi... too)



I have made simple patch and I attach it to this mail.

(See attached file or this link: https://gist.github.com/ageldama/6c713311c6cadd7bb607 )


I'll be glad if you apply this to next-release of SDL-2. :-)



Thanks.






SDL2 + XIM problem & patch
ageldama


Joined: 26 Aug 2015
Posts: 3
Location: Seoul, ROK
And I have updated PATCH FILE's Gist too. (I have missed to include SDL_x11sym.h in patch-file.)

https://gist.github.com/ageldama/6c713311c6cadd7bb607


Thanks.


2015년 8월 26일 (수) 오후 7:21, Jong-Hyouk Yun님이 작성:

Quote:
Sorry TYPO:



   But it seemed SDL2 support XIM properly.


  --> But it's not seemed SDL2 support XIM properly.


Thanks!


2015년 8월 26일 (수) 오후 7:06, Jong-Hyouk Yun님이 작성:


Quote:
Hi, I'm John.


Recently I have switched my old codes to SDL2 from SDL-1.2. But it seemed SDL2 support XIM properly.


Here's my environments and test codes...

* Archlinux, Xorg (1.17.2-4 xorg-server), i3wm, nabi-XIM -or- ibus (1.5.11-1) (locale = en_US.UTF-Cool

* Ubuntu 14.04, ibus. (locale = ko_KR.UTF-Cool

* Xlib/XIM test: https://github.com/ageldama/xlib-xim-hello

* SDL-1.2 test: https://github.com/ageldama/sdl12-unicode-text-input-example

* SDL-2 test: https://github.com/ageldama/sdl2-unicode-text-input-example


..SDL-1.2, SDL-2 test-apps are fine with OSX/Windows IMEs.

(and SDL-1.2 is fine with Xorg/X11 + ibus/nabi... too)



I have made simple patch and I attach it to this mail.

(See attached file or this link: https://gist.github.com/ageldama/6c713311c6cadd7bb607 )


I'll be glad if you apply this to next-release of SDL-2. :-)



Thanks.