[Libreoffice-commits] core.git: vcl/unx
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Wed Oct 28 19:38:00 UTC 2020
vcl/unx/gtk3/gtk3gtkframe.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit a25acac2a6c7770bb07ced4c29b3b9009ad7ff14
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Wed Oct 28 12:29:52 2020 +0000
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Wed Oct 28 20:37:19 2020 +0100
Related: tdf#137620 focus-in IMHandler on grab_focus
Change-Id: I9fa980f500cd11b34e349866e62f9f2399279e5b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104932
Reviewed-by: Justin Luth <justin_luth at sil.org>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Jenkins
diff --git a/vcl/unx/gtk3/gtk3gtkframe.cxx b/vcl/unx/gtk3/gtk3gtkframe.cxx
index c540105d03f0..1df0240c868d 100644
--- a/vcl/unx/gtk3/gtk3gtkframe.cxx
+++ b/vcl/unx/gtk3/gtk3gtkframe.cxx
@@ -2567,7 +2567,11 @@ void GtkSalFrame::GrabFocus()
if (!gtk_widget_get_can_focus(pGrabWidget) && m_nSetFocusSignalId)
gtk_widget_set_can_focus(pGrabWidget, true);
if (!gtk_widget_has_focus(pGrabWidget))
+ {
gtk_widget_grab_focus(pGrabWidget);
+ if (m_pIMHandler)
+ m_pIMHandler->focusChanged(true);
+ }
}
gboolean GtkSalFrame::signalButton(GtkWidget*, GdkEventButton* pEvent, gpointer frame)
More information about the Libreoffice-commits
mailing list