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).
This also happens when starting okular for me. The window always starts up very small.
I can confirm both comments. It's quite annoying and it should be easy to fix.
Reassigning to the mailing list
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 ;)
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.
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...
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.
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
As Armin did remember in comment #6, please see bug #150772.
*** Bug 159195 has been marked as a duplicate of this bug. ***
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.
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.
This has not been fixed yet. Any news?
*** This bug has been confirmed by popular vote. ***
Confirmed in Kubuntu Hardy. It's strange that I cannot even make KWin force the window to be maximized (via special window settings).
I can confirm that issue. Is anyone working on a fix?
Confirmed in Fedora 9. Very annoying indeed.
This seems to have been fixed as of revision 824121 (maybe it has made it to 4.1?).
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 #19: bug #159195 is the very same problem of this one, just another way of triggering the problem.
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".
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"
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
I can confirm this on gentoo with kde-svn>=20080807
@anybody: please STOP the "me too!" thing and read comment #9, thanks.
Fixed in kdelibs(trunk), see #150772.
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)
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?