Bug 214020 - embedded viewer does not get focus
Summary: embedded viewer does not get focus
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-10 19:38 UTC by Sergei Ivanov
Modified: 2011-12-15 23:29 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.8.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergei Ivanov 2009-11-10 19:38:18 UTC
Version:           2.0.83 (using KDE 4.3.3)
OS:                Linux
Installed from:    Ubuntu Packages

To reproduce: configure QuickBuild to use ForwardDVI and the latter to use okularpart. Hit Alt-1 when in a latex file, wait for the DVI viewer to appear. Try to use arrow keys to scroll - they have no effect until you hit Escape or click on the viewer.
Comment 1 Michel Ludwig 2010-05-17 00:11:27 UTC
I'm not sure whether Kile can do much here. I've tried to force OkularPart to have the focus but it doesn't work.

So, I'm forwarding this to Okular as probably some focus settings are wrong.
Comment 2 Davor Cubranic 2010-07-21 23:26:56 UTC
Bug 240516 reports a similar issue when Okular is embedded in Konqueror to view a PDF URL.
Comment 3 Albert Astals Cid 2011-12-15 23:29:50 UTC
Git commit 6176e29256eb417d76d898955d5345ce340d1384 by Albert Astals Cid.
Committed on 16/12/2011 at 00:25.
Pushed by aacid into branch 'master'.

Use a queued connection instead of direct call

It seems some shells (like konqueror and kile) are too smart and play with the focus and the focus ends up in the wrong place because they "overwrite" our setFocus call, now we workaoround that by using the queuedconnection
BUGS: 214020
BUGS: 240516
FIXED-IN: 4.8.0

M  +1    -1    part.cpp

http://commits.kde.org/okular/6176e29256eb417d76d898955d5345ce340d1384