Bug 419377

Summary: Button to exit fullscreen mode without shortcut
Product: [Applications] okular Reporter: jan.claussen10
Component: generalAssignee: Okular developers <okular-devel>
Status: CONFIRMED ---    
Severity: wishlist CC: aacid, bugseforuns, david.ellis.27, johannes, nate, sunil70563, sushrutadas0, tanvir.leon53, the_archer_xz
Priority: NOR Keywords: usability
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=366276
https://bugs.kde.org/show_bug.cgi?id=419122
https://bugs.kde.org/show_bug.cgi?id=434252
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Showing final output after the implementation of Zoom in/Out Button UI.

Description jan.claussen10 2020-03-29 12:45:22 UTC
There should be a way to exit fullscreen mode without a shortcut for e.g. tablets that only have touch input
Comment 1 Nate Graham 2020-04-15 00:30:23 UTC
Yeah, Kate and Gwenview have this. Okular probably should too. I can look into it.
Comment 2 Nate Graham 2020-10-12 18:15:08 UTC
*** Bug 427457 has been marked as a duplicate of this bug. ***
Comment 3 Tanvir Leon 2026-01-18 23:49:29 UTC
Hi! To help clarify the scope of this report before working on a fix:

When you mention “fullscreen”, do you mean Okular’s regular Full Screen Mode (View -> Full Screen), or Presentation Mode?

Also, for touch-only / tablet use, is the expectation to have a clearly visible on-screen way to exit fullscreen, or is another interaction (e.g. gesture / long press) preferred?

I’m new to Okular / KDE and interested in taking a look at this, so I just want to make sure I understand the intended behavior before starting.
Comment 4 Johannes Zarl-Zierl 2026-01-19 22:43:10 UTC
Hi Tanvir,

It's a good thing that you mentioned presentation mode: I just tried that and the issue does not affect presentation mode in the same way. In presentation mode, one can touch the upper screen edge and a toolbar appears that can be used to exit presentation mode. This is not very discoverable, but having an always-visible UI element would not work well for presentations and there is an explanation text when entering presentation mode. So I guess that works well enough.

I meant the regular full screen mode. My expectation would be to have an easily discoverable on-screen way to exit fullscreen, not a gesture.
Discoverable could mean either always visible, or maybe hidden unless there is a touch event.
Comment 5 jan.claussen10 2026-01-19 22:53:29 UTC
I meant the normal fullscreen mode. It is possible to exit the presentation mode, but not the normal fullscreen mode. I am not sure about what would be the best way to realise this. In any way, it should not distract from reading. So either a small constantly visible button or one that is activated by a gesture. Maybe pulling down from the top could slide down something.
Comment 6 Albert Astals Cid 2026-01-19 22:57:01 UTC
I guess you can't right click?
Comment 7 Johannes Zarl-Zierl 2026-01-19 23:01:51 UTC
No, I can't right-click.
My tablet unfortunately can't tell my fingers apart ;-)
Comment 8 dmadls 2026-01-19 23:32:08 UTC
I agree for the need to exit "full screen" mode with a gesture or long press menu or swipe to a particular side, etc.  Doesn't need to be something always visiable.  Commentary - I'm a musician and use Okular as my sheet music viewer on a 2-in-1 flip laptop.  I bought a 1-button bluetooth keyboard that when pressed just transmits ctrl-Q so i can exit out.  Then bought a 3-button for page up, page down, and quit...
Comment 9 Tanvir Leon 2026-01-20 00:37:43 UTC
Thanks for the clarification, that helps a lot!

Based on this, I’m planning to try adding a small, discoverable on-screen exit control for regular Full Screen Mode. The idea would be a lightweight overlay in the top-right containing an “Exit Full Screen” action (icon button with tooltip / accessible name), which auto-hides to stay unobtrusive.

It would appear when the cursor approaches the top edge on desktop, and also on user interaction events (e.g. touch begin) so it remains discoverable on touch devices where hover or right-click may not exist.

I’ll start with a minimal implementation and report back with a draft MR.
Comment 10 Tanvir Leon 2026-01-20 03:09:41 UTC
I’ve opened a draft MR for this here: https://invent.kde.org/graphics/okular/-/merge_requests/1305

This is an initial implementation and likely needs some polish; feedback or guidance would be very welcome, and I’m happy to adjust the approach if needed.
Comment 11 Albert Astals Cid 2026-01-20 07:26:42 UTC
Sunil Kumar, don't assign bugs to yourself.
Comment 12 Sunil Kumar 2026-01-20 11:32:55 UTC
(In reply to Albert Astals Cid from comment #11)
> Sunil Kumar, don't assign bugs to yourself.

I am extremely sorry about that. I am a KDE person but new to this Bug tracking System. I thought it would make a request to be approved; I thought it is there to show interest in being a volunteer to solve it.
I will take care of it next time.
Also, curious to know, if one can start working to a bug fix, if it is not assigned to them yet.
Comment 13 Albert Astals Cid 2026-01-20 20:59:41 UTC
You thought to start working on it *AFTER* someone else said they were working on this?
Comment 14 Sunil Kumar 2026-01-20 22:31:58 UTC
(In reply to Albert Astals Cid from comment #13)
> You thought to start working on it *AFTER* someone else said they were
> working on this?

Nah, there was a misunderstanding, As I said in the last comment, this is my first time using BugTracking System. I saw the large comment box to add comment, I thought it's the end of the page, and I missed that there are discussions at the end. And started working on the solution, then saw your comment in my mailbox and came to know that there is discussion at the bottom,

Btw, during that time, I prepared the solution, and I'm happy to share if @Tanvir Leon wants to adapt that or wants me to implement it if needed, I have attached a video showing how final output should look like in the Attachments Section. Hope that isn't restricted to do.
Again, I apologize, I think, I should have been more careful at the first time.
Comment 15 Sunil Kumar 2026-01-20 22:33:51 UTC
Created attachment 188729 [details]
Showing final output after the implementation of Zoom in/Out Button UI.

Any suggestions are welcomed.
Comment 16 dmadls 2026-01-21 01:14:12 UTC
I like Tanvir's idea of something appearing say after an inital press somewhere, a button appears in a corner that when pressed exits.  OR maybe a little scope creep, but a whole pop-up menu appears after an inital tap that presents "exit full screen" (like esc), "quit app" (like ctrl q), "page up", "page down", "top", "bottom", then autohides after a time, and after a button is pressed it stays for 2 seconds so you could press page up or page down multiple times before the menu disappears.  (That would certainly meet my personal needs for sheet music viewing).  Yes, I'm a UX designer but only a C/C++, Python, Java developer.

I did review the video from Sunil and that solution would meet the basic needs.  It does create a static blocking on the screen of the arrows.  Maybe if they were outlines they would be less intrusive, or translucent.

Not sure who is going to ultimatley address this feature request but those are my thoughts for a touch pop-up menu.
Comment 17 aristsakas 2026-02-11 11:37:12 UTC
*** Bug 472185 has been marked as a duplicate of this bug. ***