Blame SOURCES/0068-lokdocview-Grab-focus-on-mouse-button-press-event.patch
|
 |
f325b2 |
From 9a0f632a8a5d76f8f685068738344cc1d7932805 Mon Sep 17 00:00:00 2001
|
|
 |
f325b2 |
From: Pranav Kant <pranavk@gnome.org>
|
|
 |
f325b2 |
Date: Thu, 2 Jul 2015 23:47:33 +0530
|
|
 |
f325b2 |
Subject: [PATCH 068/398] lokdocview: Grab focus on mouse 'button-press-event'
|
|
 |
f325b2 |
|
|
 |
f325b2 |
Change-Id: I65187bbd2cc32d9278d8b3890a82b5555390858a
|
|
 |
f325b2 |
(cherry picked from commit a625cd702700ae1773966a3133d27027d1c4d083)
|
|
 |
f325b2 |
---
|
|
 |
f325b2 |
libreofficekit/source/gtk/lokdocview.cxx | 1 +
|
|
 |
f325b2 |
1 file changed, 1 insertion(+)
|
|
 |
f325b2 |
|
|
 |
f325b2 |
diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx
|
|
 |
f325b2 |
index 2c7bb7be4867..5de795a1a961 100644
|
|
 |
f325b2 |
--- a/libreofficekit/source/gtk/lokdocview.cxx
|
|
 |
f325b2 |
+++ b/libreofficekit/source/gtk/lokdocview.cxx
|
|
 |
f325b2 |
@@ -812,6 +812,7 @@ lok_doc_view_signal_button(GtkWidget* pWidget, GdkEventButton* pEvent)
|
|
 |
f325b2 |
(int)pEvent->x, (int)pEvent->y,
|
|
 |
f325b2 |
(int)pixelToTwip(pEvent->x, priv->m_fZoom),
|
|
 |
f325b2 |
(int)pixelToTwip(pEvent->y, priv->m_fZoom));
|
|
 |
f325b2 |
+ gtk_widget_grab_focus(GTK_WIDGET(pDocView));
|
|
 |
f325b2 |
|
|
 |
f325b2 |
if (pEvent->type == GDK_BUTTON_RELEASE)
|
|
 |
f325b2 |
{
|
|
 |
f325b2 |
--
|
|
 |
f325b2 |
2.12.0
|
|
 |
f325b2 |
|