Bug 495743

Summary: Okular window does not have focus when password prompt is dismissed
Product: [Applications] okular Reporter: elman
Component: generalAssignee: Okular developers <okular-devel>
Status: REPORTED ---    
Severity: normal CC: aacid
Priority: NOR    
Version: 24.08.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description elman 2024-11-03 09:45:48 UTC
SUMMARY
When I open passworded PDF and dismiss password prompt, Okular main window does not have focus and focus is returned to application that opened Okular.

STEPS TO REPRODUCE
1. Open Dolphin and navigate to folder with passworded PDF
2. Open PDF
3. Okular shows prompt to enter password
4. Press ESC to dismiss prompt
5. Click OK to close alert
6. Press Alt+F4 to close application

OBSERVED RESULT
Dolphin is closed.

EXPECTED RESULT
Okular is closed.

SOFTWARE/OS VERSIONS
Operating System: EndeavourOS 
KDE Plasma Version: 6.2.2
KDE Frameworks Version: 6.7.0
Qt Version: 6.8.0
Kernel Version: 6.11.5-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Comment 1 Albert Astals Cid 2024-11-03 17:51:55 UTC
Works for me under X11, can you try if that works for you too?
Comment 2 elman 2024-11-15 04:55:42 UTC
Hi. Sorry for late answer. Yes, X11 works fine, so issue is only in Wayland session.
Comment 3 elman 2024-12-09 08:44:04 UTC
I just noticed that same thing happens also when you enter correct password. Okular shows popup, which has focus and when you either dismiss prompt or enter correct password, focus is moved to application in the background, not to Okular document window.