Bug 137108 - okular returns small from full-screen
Summary: okular returns small from full-screen
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
: 159195 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-11-09 16:38 UTC by jos poortvliet
Modified: 2009-02-04 20:35 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
screenshot of initial window size (25.20 KB, image/png)
2008-02-12 12:42 UTC, Michal Svec
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jos poortvliet 2006-11-09 16:38:03 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
OS:                Linux

if you are reading a doc with window maximized, put okular fullscreen, and then go back from fullscreen, the window is very small and in the top-left corner of the screen instead of back at its previous maximized state.
this goes wrong both with ctrl-shift-F and F11 (which i have set as the systemwide kwin shortcut for fullscreen window).
Comment 1 Gabriel Ambuehl 2006-11-22 08:41:41 UTC
This also happens when starting okular for me. The window always starts up very small.
Comment 2 Jiri Klement 2007-01-24 13:16:58 UTC
I can confirm both comments. It's quite annoying and it should be easy to fix.
Comment 3 Albert Astals Cid 2007-06-04 12:00:55 UTC
Reassigning to the mailing list
Comment 4 Armin Berres 2007-11-08 22:48:04 UTC
trigger| pinotree: it remebers it's size as long as i don't maximize it. after maximizing it it seems to forget it
pinotree<< trigger: you literally triggered http://bugs.kde.org/show_bug.cgi?id=137108

At least one more person which can reproduce it ;)
Comment 5 Christoph Glotzbach 2008-01-14 17:53:49 UTC
I can confirm the behavior that Armin Berres describes. When returning from fullscreen mode, Okular doesn't seem to remember that it was maximized before entering fullscreen mode. Same for starting up.
Comment 6 Armin Berres 2008-01-29 21:18:02 UTC
Any news on this front?
I love Okular, but this bug is quite annoying, when dealing with a lot of different PDFs.
Is this the same Bug as #150772? Is using QWidget::showMaximized() instead of KWindowSystem::setState() and option? I have to admit I didn't look at any code yet...
Comment 7 Michal Svec 2008-02-12 12:42:35 UTC
Created attachment 23544 [details]
screenshot of initial window size

Indeed, current behaviour is quite weird, an initial window size is 415x158,
you can see on the screenshot it's not very useful :-)

This is also the same size which is used when okular was maximized before.
Comment 8 Michal Svec 2008-02-12 12:52:57 UTC
The reason (for not restoring the size) might be that it's not properly saved.
When I maximize the window, this is saved into ~/.kde4/share/config/okularrc:

[MainWindow]
Height 1050=1051
State=AAAA/wAAAAD9AAAAAAAABXgAAAOgAAAABAAAAAQAAAAIAAAACPwAAAABAAAAAgAAAAEAAAAWAG0AYQBpAG4AVABvAG8AbABCAGEAcgEAAAAAAAAFeAAAAAAAAAAA
Width 1400=1401

My display resolution is 1400x1050, therefore I guess okular (or kwin) just
ignores the setting as bogus.

For the record, xwininfo reports this sizes:
  Width: 1400
  Height: 999
Comment 9 Pino Toscano 2008-02-12 13:00:28 UTC
As Armin did remember in comment #6, please see bug #150772.
Comment 10 Pino Toscano 2008-03-13 11:08:44 UTC
*** Bug 159195 has been marked as a duplicate of this bug. ***
Comment 11 Leo Spalteholz 2008-03-27 19:58:05 UTC
A temporary work around is to open a document in Okular, then resize okular to just a little bit below the full size of the screen (so its not maximized, but close to the same size) and then close it again.  
Then at least when it opens in the future its not miniature and can be used.
Comment 12 Vladimir Stefanović 2008-04-07 02:21:30 UTC
I watched "okularrc" file. When I resize window and close it, window size which is written in file is ok. But, when I just open Okular again, sizes in okularrc are immediately replaced by:
Height 1024=271
Width 1280=800

and window is small when openned.
Comment 13 jos poortvliet 2008-05-03 11:45:03 UTC
This has not been fixed yet. Any news?
Comment 14 ariellov 2008-05-12 22:30:19 UTC
*** This bug has been confirmed by popular vote. ***
Comment 15 Edgar Kalkowski 2008-05-16 14:24:15 UTC
Confirmed in Kubuntu Hardy.

It's strange that I cannot even make KWin force the window to be maximized (via special window settings).
Comment 16 Cyrill Helg 2008-06-02 18:28:26 UTC
I can confirm that issue. Is anyone working on a fix?
Comment 17 Marcelo Sales 2008-06-13 02:24:34 UTC
Confirmed in Fedora 9. Very annoying indeed.
Comment 18 Raphael Kubo da Costa 2008-06-25 07:47:20 UTC
This seems to have been fixed as of revision 824121 (maybe it has made it to 4.1?).
Comment 19 Raphael Kubo da Costa 2008-06-25 07:54:11 UTC
Actually, the fullscreen bug present in the original report has been fixed.

However, bug #159195, which has been marked as a duplicate of this one, is still valid: Okular doesn't remember its size if it was (fully or vertically, but not horizontally) maximized the last time it was run.
Comment 20 Pino Toscano 2008-06-25 09:41:53 UTC
@comment #19:
bug #159195 is the very same problem of this one, just another way of triggering the problem.
Comment 21 Junki 2008-07-16 11:46:49 UTC
Confirmed on Gentoo system, version 4.0.85. Anyway, another annoying problem is that the application doesn't remember settings about "displaying size" for a document. For example: open a PDF file, set "Fit Width" than close it. When I reopen the same file oKular remeber the position of the cursor but not the setting "Fit Width".
Comment 22 Kishore 2008-07-23 06:10:55 UTC
I have this issue too. Additionally, it also does not remember its zoom level setting. It always defaults to "fit page" although i prefer a "fit width"
Comment 23 solsTiCe 2008-08-03 17:24:31 UTC
i guess the first time i opened okular the size was 1235x417, because now it is always that size when i open it. no quite the same bug because the window is very small. but almost
Comment 24 Cristi 2008-08-14 08:27:16 UTC
I can confirm this on gentoo with kde-svn>=20080807
Comment 25 Pino Toscano 2008-08-18 02:20:29 UTC
@anybody:
please STOP the "me too!" thing and read comment #9, thanks.
Comment 26 Armin Berres 2008-11-05 19:16:59 UTC
Fixed in kdelibs(trunk), see #150772.
Comment 27 Daniel Duris 2009-02-04 20:27:42 UTC
still happens in kde 4.1.3 (ubuntu intrepid), so it doesn't look like fixed.

ps: this happens also to other apps, so i guess it some kde general error. (e.g. some windows don't remember their previous states, even when explicitly set to "force" or "remember" size)
Comment 28 Armin Berres 2009-02-04 20:35:37 UTC
4.1.3 has been released November 5th, 2008.
The fix has been committed to the 4.1 branch November 20th, 2008.

You see the problem?