diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-03-27 14:33:40 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2017-03-30 12:46:18 +0200 |
commit | 7618142f81459230b6f97731867875fcd14af8f2 (patch) | |
tree | 29329c59ab9346840d5dba406974d4f01656438d /vcl | |
parent | 9f98c21dc7af8c8d77d5914a74f167f71691cf68 (diff) |
Resolves: rhbz#1436050 im window misplaced for gtk3
events are relative to event window not the toplevel
window which includes a menubar widget (and maybe
the decoration topbar as well)
Change-Id: I5101bd4a35d6e3aee03191594e5f6edb7ca34c69
(cherry picked from commit 32351d1bd34a0a0d3bb8fa41667a770c125de460)
Reviewed-on: https://gerrit.libreoffice.org/35761
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
(cherry picked from commit b986fa2c66e272d926b189683c12cca81bcb5125)
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/gtk3/gtk3gtkframe.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/unx/gtk3/gtk3gtkframe.cxx b/vcl/unx/gtk3/gtk3gtkframe.cxx index 1a4823eb3eb5..550e76e8cbe4 100644 --- a/vcl/unx/gtk3/gtk3gtkframe.cxx +++ b/vcl/unx/gtk3/gtk3gtkframe.cxx @@ -3566,7 +3566,7 @@ void GtkSalFrame::IMHandler::createIMContext() G_CALLBACK (signalIMPreeditEnd), this ); GetGenericData()->ErrorTrapPush(); - gtk_im_context_set_client_window( m_pIMContext, widget_get_window(GTK_WIDGET(m_pFrame->m_pWindow)) ); + gtk_im_context_set_client_window(m_pIMContext, widget_get_window(m_pFrame->getMouseEventWidget())); gtk_im_context_focus_in( m_pIMContext ); GetGenericData()->ErrorTrapPop(); m_bFocused = true; |