[Libreoffice-commits] core.git: vcl/unx
Caolán McNamara
caolanm at redhat.com
Tue May 10 09:22:07 UTC 2016
vcl/unx/gtk/gtksalframe.cxx | 3 ++-
vcl/unx/gtk3/gtk3gtkframe.cxx | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
New commits:
commit 4cd0f67562770eb3e88efa9072add80ac2f80c06
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue May 10 10:19:40 2016 +0100
EXTTEXTINPUT_CURSOR_INVISIBLE is set on the wrong field
Change-Id: I6d92c86035dd321eb6df46bcd01aed7a0113b0a4
diff --git a/vcl/unx/gtk/gtksalframe.cxx b/vcl/unx/gtk/gtksalframe.cxx
index 3a8014c..e823172 100644
--- a/vcl/unx/gtk/gtksalframe.cxx
+++ b/vcl/unx/gtk/gtksalframe.cxx
@@ -3749,7 +3749,8 @@ void GtkSalFrame::IMHandler::signalIMPreeditChanged( GtkIMContext*, gpointer im_
switch (pango_attr->klass->type)
{
case PANGO_ATTR_BACKGROUND:
- sal_attr |= (EXTTEXTINPUT_ATTR_HIGHLIGHT | EXTTEXTINPUT_CURSOR_INVISIBLE);
+ sal_attr |= EXTTEXTINPUT_ATTR_HIGHLIGHT;
+ pThis->m_aInputEvent.mnCursorFlags |= EXTTEXTINPUT_CURSOR_INVISIBLE;
break;
case PANGO_ATTR_UNDERLINE:
sal_attr |= EXTTEXTINPUT_ATTR_UNDERLINE;
diff --git a/vcl/unx/gtk3/gtk3gtkframe.cxx b/vcl/unx/gtk3/gtk3gtkframe.cxx
index 099bae1..c37911f 100644
--- a/vcl/unx/gtk3/gtk3gtkframe.cxx
+++ b/vcl/unx/gtk3/gtk3gtkframe.cxx
@@ -3821,7 +3821,8 @@ void GtkSalFrame::IMHandler::signalIMPreeditChanged( GtkIMContext*, gpointer im_
switch (pango_attr->klass->type)
{
case PANGO_ATTR_BACKGROUND:
- sal_attr |= (EXTTEXTINPUT_ATTR_HIGHLIGHT | EXTTEXTINPUT_CURSOR_INVISIBLE);
+ sal_attr |= EXTTEXTINPUT_ATTR_HIGHLIGHT;
+ pThis->m_aInputEvent.mnCursorFlags |= EXTTEXTINPUT_CURSOR_INVISIBLE;
break;
case PANGO_ATTR_UNDERLINE:
sal_attr |= EXTTEXTINPUT_ATTR_UNDERLINE;
More information about the Libreoffice-commits
mailing list