diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-09-16 12:30:25 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-09-21 07:30:20 +0200 |
commit | f2e55ea10676d14c6564696a0648c0edbe4bd36d (patch) | |
tree | 2484b4e060bd524330b2550f7004272cdbe35759 /sfx2/source | |
parent | 8cb6094447041b7fbe29bd5584b5daf9babb5cad (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.
Change-Id: I81890c1d8ad7972f1194db3d5f2e9d8a39fc2f87
Diffstat (limited to 'sfx2/source')
-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() |