summaryrefslogtreecommitdiffstats
path: root/mageia/dependencies/qt3/workaround-for-xlib-xim-bug.diff
diff options
context:
space:
mode:
authorFrancois Andriot <francois.andriot@free.fr>2012-08-02 11:13:00 +0200
committerFrancois Andriot <francois.andriot@free.fr>2012-08-02 11:13:00 +0200
commit0704427510fa18d90170cf13d1fd81e446a1d3b0 (patch)
treef88eb0400bf4608d95808aeea656185634b9c0fc /mageia/dependencies/qt3/workaround-for-xlib-xim-bug.diff
parent9f07f141355cd13d40a39a2f123c6516209c5fcf (diff)
downloadtde-packaging-0704427510fa18d90170cf13d1fd81e446a1d3b0.tar.gz
tde-packaging-0704427510fa18d90170cf13d1fd81e446a1d3b0.zip
Mageia: initial QT3 version for TDE 3.5.13
Diffstat (limited to 'mageia/dependencies/qt3/workaround-for-xlib-xim-bug.diff')
-rw-r--r--mageia/dependencies/qt3/workaround-for-xlib-xim-bug.diff14
1 files changed, 14 insertions, 0 deletions
diff --git a/mageia/dependencies/qt3/workaround-for-xlib-xim-bug.diff b/mageia/dependencies/qt3/workaround-for-xlib-xim-bug.diff
new file mode 100644
index 000000000..2d8806ec9
--- /dev/null
+++ b/mageia/dependencies/qt3/workaround-for-xlib-xim-bug.diff
@@ -0,0 +1,14 @@
+--- plugins/src/inputmethods/xim/qximinputcontext_x11.cpp 2006-02-17 16:16:37.000000000 -0500
++++ plugins/src/inputmethods/xim/qximinputcontext_x11.cpp.new 2006-02-17 16:30:47.000000000 -0500
+@@ -491,8 +491,11 @@
+ ximServerName.ascii());
+ else {
+ Display *dpy = QPaintDevice::x11AppDisplay();
++ XWindowAttributes attr; // XIM unselects all events on the root window
++ XGetWindowAttributes( dpy, QPaintDevice::x11AppRootWindow(),&attr );
+ XRegisterIMInstantiateCallback(dpy, 0, 0, 0,
+ (XIMProc) xim_create_callback, 0);
++ XSelectInput( dpy, QPaintDevice::x11AppRootWindow(), attr.your_event_mask );
+ }
+ #else // !USE_X11R6_XIM
+ else if ( XSetLocaleModifiers ("") == 0 )