ibus/ibus-xim-fix-re-focus-after-lock.patch
Fuminobu Takeyama 1933cca3f2 Accepting request 234941 from home:tiwai:branches:M17N
- Fix the lost XIM input after GNOME screen lock (bnc#874969):
  ibus-xim-fix-re-focus-after-lock.patch

OBS-URL: https://build.opensuse.org/request/show/234941
OBS-URL: https://build.opensuse.org/package/show/M17N/ibus?expand=0&rev=102
2014-05-21 13:03:26 +00:00

17 lines
511 B
Diff

---
client/x11/main.c | 3 +++
1 file changed, 3 insertions(+)
--- a/client/x11/main.c
+++ b/client/x11/main.c
@@ -421,6 +421,9 @@ xim_set_ic_focus (XIMS xims, IMChangeFoc
GINT_TO_POINTER ((gint) call_data->icid));
g_return_val_if_fail (x11ic != NULL, 0);
+ /* make sure that focus has been already out */
+ ibus_input_context_focus_out (x11ic->context);
+
ibus_input_context_focus_in (x11ic->context);
_xim_set_cursor_location (x11ic);