Fix SEGV on mouse clicks when ibus-daemon not running
This commit is contained in:
parent
4f9e8c7805
commit
e5d4c88733
@ -2020,3 +2020,33 @@ index ba9d92b6..7615f121 100644
|
|||||||
--
|
--
|
||||||
2.19.1
|
2.19.1
|
||||||
|
|
||||||
|
From c7d8771cb9fc652cb638aa7cb8e10ea6b889509e Mon Sep 17 00:00:00 2001
|
||||||
|
From: fujiwarat <takao.fujiwara1@gmail.com>
|
||||||
|
Date: Tue, 11 Dec 2018 19:16:10 +0900
|
||||||
|
Subject: [PATCH] client/gtk2: Fix SEGV on mouse clicks when ibus-daemon not
|
||||||
|
running
|
||||||
|
|
||||||
|
---
|
||||||
|
client/gtk2/ibusimcontext.c | 5 +++--
|
||||||
|
1 file changed, 3 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/client/gtk2/ibusimcontext.c b/client/gtk2/ibusimcontext.c
|
||||||
|
index ed7fea6e..ab7ff88a 100644
|
||||||
|
--- a/client/gtk2/ibusimcontext.c
|
||||||
|
+++ b/client/gtk2/ibusimcontext.c
|
||||||
|
@@ -1117,9 +1117,10 @@ ibus_im_context_button_press_event_cb (GtkWidget *widget,
|
||||||
|
if (event->button != 1)
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
|
- ibus_im_context_clear_preedit_text (ibusimcontext);
|
||||||
|
- if (ibusimcontext->ibuscontext)
|
||||||
|
+ if (ibusimcontext->ibuscontext) {
|
||||||
|
+ ibus_im_context_clear_preedit_text (ibusimcontext);
|
||||||
|
ibus_input_context_reset (ibusimcontext->ibuscontext);
|
||||||
|
+ }
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
--
|
||||||
|
2.19.1
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
|
|
||||||
Name: ibus
|
Name: ibus
|
||||||
Version: 1.5.19
|
Version: 1.5.19
|
||||||
Release: 10%{?dist}
|
Release: 11%{?dist}
|
||||||
Summary: Intelligent Input Bus for Linux OS
|
Summary: Intelligent Input Bus for Linux OS
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
@ -436,6 +436,9 @@ dconf update || :
|
|||||||
%{_datadir}/gtk-doc/html/*
|
%{_datadir}/gtk-doc/html/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Dec 12 2018 Takao Fujiwara <tfujiwar@redhat.com> - 1.5.19-11
|
||||||
|
- Fix SEGV on mouse clicks when ibus-daemon not running
|
||||||
|
|
||||||
* Mon Dec 10 2018 Takao Fujiwara <tfujiwar@redhat.com> - 1.5.19-10
|
* Mon Dec 10 2018 Takao Fujiwara <tfujiwar@redhat.com> - 1.5.19-10
|
||||||
- Always reset and clear preedit on mouse click
|
- Always reset and clear preedit on mouse click
|
||||||
- Show compose preedit with custom compose file
|
- Show compose preedit with custom compose file
|
||||||
|
Loading…
Reference in New Issue
Block a user