Bug 349278 - Double page bar when opening files in full screen mode
Summary: Double page bar when opening files in full screen mode
Status: RESOLVED NOT A BUG
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.21.3
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-17 09:33 UTC by Tristan Miller
Modified: 2015-07-06 13:19 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tristan Miller 2015-06-17 09:33:53 UTC
If you open a file while in full screen mode, then an extra page bar appears at the bottom of the screen.

Reproducible: Always

Steps to Reproduce:
1. Open a file.
2. Make sure the page bar is visible.  (Settings -> Show Page Bar)
3. Enter full screen mode.
4. Press Ctrl+O and open another file.


Actual Results:  
5. The other file displays in full screen mode, but an additional page bar appears at the bottom of the screen.

Expected Results:  
5. The other file should display in full screen mode, but there should be only one page bar.
Comment 1 Albert Astals Cid 2015-07-05 22:15:25 UTC
It's not another page bar, it's just the page bar of the old file that is open in the old window behind the new one.
Comment 2 Tristan Miller 2015-07-06 10:57:18 UTC
So displaying two different page bars in full-screen mode is the intended behaviour?  How is that supposed to be useful?
Comment 3 Albert Astals Cid 2015-07-06 11:02:58 UTC
It's not two different page bars, it's two different windows, you sure understand the concept of different windows, right?
Comment 4 Tristan Miller 2015-07-06 11:44:59 UTC
I do, but in full-screen mode I expect to see only a single window, without a frame or title bar, which fills the entire screen.  I don't understand what use it is to draw another window (also without a frame or title bar) on top of the one I am looking at, except not maximized so that I can still see the page bar of the window underneath.  That is, I expect windows opened in "full screen" mode to fill the entire screen, not just part of it.  Could you explain the use case for leaving the page bar of the old window exposed, rather than automatically maximizing the new window?
Comment 5 Albert Astals Cid 2015-07-06 12:49:15 UTC
You opened a new document, that document opens in a new window, that window is not full screen, why should it? and even if it should, it has nothing to do with "double page bar" your description says.
Comment 6 Tristan Miller 2015-07-06 13:19:08 UTC
Well, my expectation was that "full screen mode" is a global, not per-document, setting.  That is, I figured that once I told Okular to go into full-screen mode, it would stay that way until I told it to exit full-screen mode, no matter how many other documents I opened.  (This is similar to how, when I tell my web browser to go into full-screen mode, I don't expect it to drop out of it just because a visit another page.)

Admittedly it's a perfectly reasonable design decision for full screen mode to apply only to the current document, and for subsequent windows to open in the normal display mode.  But in that case, it seems strange that these subsequent windows can't be maximized to the full screen, but rather always display the page bar of the full-screen document at the bottom.  (On double-checking I see I was wrong about the subsequent windows not having a title bar or frame -- they do; it's just that they can't be completely maximized.)  Is this a problem with KWin or is Okular drawing the page bar of full-screen documents in a separate window with the "Always on top" flag set?