diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-09-16 12:30:25 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-10-06 16:24:39 +0200 |
commit | b40bc4e75a7fc3d4dc4eca6c556e4f93f2143249 (patch) | |
tree | a34ac53e01c49cd38a9a3c5d1fe23c121acdda94 /sfx2 | |
parent | 425b2076a2bdfa24691e7df50be6f110422283a7 (diff) |
gtktiledviewer: use setView() before postKeyEvent()
Also in SfxLokHelper::setView() set the current view shell directly,
GetFocus() in VCL may be a NOP for hidden windows.
With this, the Writer layout dump shows that two Gtk windows can have
different cursor positions correctly.
(cherry picked from commit f2e55ea10676d14c6564696a0648c0edbe4bd36d)
Conflicts:
libreofficekit/source/gtk/lokdocview.cxx
Change-Id: I81890c1d8ad7972f1194db3d5f2e9d8a39fc2f87
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/view/lokhelper.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/view/lokhelper.cxx b/sfx2/source/view/lokhelper.cxx index f53d2b35b1bd..0beb06ddd956 100644 --- a/sfx2/source/view/lokhelper.cxx +++ b/sfx2/source/view/lokhelper.cxx @@ -46,7 +46,7 @@ void SfxLokHelper::setView(size_t nId) SfxViewShell* pViewShell = rViewArr[nId]; if (SfxViewFrame* pViewFrame = pViewShell->GetViewFrame()) - pViewFrame->GetWindow().GrabFocus(); + pViewFrame->MakeActive_Impl(false); } size_t SfxLokHelper::getView() |