Bug 330364

Summary: presentation window raises upon gaining focus, does not obey window manager settings
Product: [Applications] okular Reporter: Cristian Tibirna <tibirna>
Component: generalAssignee: Okular developers <okular-devel>
Status: CONFIRMED ---    
Severity: normal CC: luigi.toscano
Priority: NOR    
Version: 0.19.60   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

Description Cristian Tibirna 2014-01-24 15:31:36 UTC
With okular is in presentation mode, when putting a window on top (e.g. an external helper program for movie/image/code editing/etc., or simply selecting a previously existing window with Alt+Tab), if the focus goes from this new window to the presentation window (which is too easy to do in "Focus follows mouse" mode of the window manager), the presentation window raises and hides that top window. This is frustrating in a classroom or conference environment where there is frequent alternation between presentation and movie/image/code viewing. 

Reproducible: Always

Steps to Reproduce:
1. Put the window manager in "Focus follows mouse" mode
2. Open some window (e.g. konsole, systemsettings etc.) in non-maximized mode
3. Open a pdf in okular and put it in presentation mode
4. Bring the window from 1. on top (e.g. with Alt-Tab)
5. Hover the mouse from this window to the okular presentation window
Actual Results:  
The presentation window raises and hides the previous window

Expected Results:  
The presentation window should obey the window manager settings. If there is no "raise on gaining focus", then the presentation window should not come on top. The previous window should remain visible (even without focus)
Comment 1 Cristian Tibirna 2020-05-03 20:14:42 UTC
Still reproducible 6 years later.
Comment 2 Laura David Hurka 2020-07-16 22:20:26 UTC
I agree that this behavior is frustrating. As far as I can reproduce it now, it is not an Okular issue. On my KDE Neon, any fullscreen window (including non-Qt applications) raises automatically when it gets focus.

Might be interesting which window manager you use and how it is configured. Maybe it is possible to configure fullscreen windows to behave like any other window? (Would probably mean that the panel is visible.)
Comment 3 Cristian Tibirna 2020-08-09 13:53:32 UTC
Sorry for the long delay. Thanks for investigating further. I use 'kwin'. I think there should be no need for special configuration for full screen windows.