Community-edition: Remember last window size

Created on 1 Jul 2016  路  9Comments  路  Source: ramboxapp/community-edition

When started, rambox will always maximized, instead remembering last window size before quit

thanks

enhancement

All 9 comments

That's true, I will fix this for next release.

Thanks!

I just upgraded to 4.0 from 3.0, which I imagine means I now have this commit in my copy of rambox, and now rambox will not remember that I had it maximized. I actually want it to start maximized and be maximized all the time, so it's very annoying suddenly having to manually maximize it every time it starts. Can't it also remember whether it was maximized, as most programs do? I'm use XFCE with xfwm4, so I can't really manually make it maximize on launch myself.

Well, I couldn't test it in that OS.

I'm using Electron Window State library, and seems to be a bug from them. On Windows with Multi screen works great, remembers position, size, state (max/min). I will try to test it on XFCE.

XFCE also knows how to remember whether a window was maximized, so my guess is something about the way you've set it to apply its last window size is overriding maximization, maybe because that step is happening _after_ the window first spawns?

Added in 0.4.0.

It's still not remembering that it was maximized on my computers. Running 0.4.0.

EDIT: Oh, this is more interesting. On one computer (desktop), running an NVidia card with the open-source nouveau drivers, it actually does start maximized if I quit it maximized. On the computer I actually want to use Rambox on (laptop), which uses the open-source Intel drivers, it still does not remember. I'm specifying their display drivers because it's the only thing different about them besides hardware.

Interesting... I will take a look on this to find another solutions. Rambox is using electron-window-state plugin, so it's a bug for this plugin.

OK, this is getting really weird, but the bug is fixed for me now.

I compared 3 windows-state.json files: the one on my desktop, the one on my laptop, and the one on a backup of my desktop from when I KNOW it remembered being maximized. They were completely identical, including file permissions. However, I just tried overwriting the file on my laptop with the one on my desktop, and now my laptop also remembers to start maximized. So, case closed, but I don't know why.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings