Menu

#1176 close kde app maximized does always reopen it fully maximized

v1.3.5
closed-invalid
nobody
5
2021-04-19
2020-02-29
Tuxo Holic
No

Hello,
If I close a qt5 application in maximized state the ~/.fluxbox/apps file definition is ignored the next time I start the same app. So it remains fully maximized, no matter how you close it next. The ~/.config/<kdeapp>rc file got updated with the value "Window-Maximized 1080x1920=true"</kdeapp>

Here's what it looks like for kde - konsole.

[MainWindow]
Height 1080=1017
State=AAAA/wAAAAD9AAAAAAAAB4AAAAPaAAAABAAAAAQAAAAIAAAACPwAAAAA
Window-Maximized 1080x1920=true

removing the Window-Maximized line does fix the issue, but config file editing is annoying if it happens often. Why does fluxbox follow a kwin syntax anyway when we have the fluxbox/apps file?

Here's what the entry looks like in ~/.fluxbox/apps to start it centered horizontaly and maximized only vertitcally, not fully.

[app] (name=konsole) (class=konsole)
  [Dimensions]  {73% 100%}
  [Position]    (UPPERLEFT)     {16% 0%}
[end]

I don't use a "role" definition, could this help to override the "MainWindow" Problem?

I shoud also mention I use qt5ct to change the icon theme and font size, I hope it does not have side effects on the window geometry handling.

Discussion

<< < 1 2 (Page 2 of 2)
  • Thomas Luebking

    Thomas Luebking - 2021-04-19

    The window uses the maximized geometry as user provided geometry, so it doesn't restore the unmaximized geometry and sets itself as maximized but restores the maximized geometry which becomes physically indistiguishable from the maximized state.

    Afaics fuxbox doesn't provide a Maximize command that is not a toggle, otherwise you could MacroCmd {UnMaximize} {Close}
    This way the best workaround available would probably be sth. like
    MacroCmd {ResizeTo 25% 25%} {Close}

     
  • Tuxo Holic

    Tuxo Holic - 2021-04-19

    Update: tested against fluxbox.git: unpatched git was showing the same symptoms in vlc, kwrite, konsole and the proposed patch fixed it good enough.

    Are you committing this to git? I'd like to try my luck with a late Debian Testing patch suggestion. The current debian testing version is 1.3.5 - that's kind of old anyway - we should try to get this patch in for bullseye with v. 1.3.7 if you're okay with it.

     
  • Thomas Luebking

    Thomas Luebking - 2021-04-19

    The patch could at best arrive in 1.4 - if an when it is ever released ;-)

    Again: I do not maintain fluxbox.
    I could push it into my private github fork, but that won't help much either here, I guess.

     
  • Tuxo Holic

    Tuxo Holic - 2021-04-19

    well, I don't have much time with the merge window closing soon so, there goes nothing ... I filed for a version bump in debian/testing and hope they also consider your patch and give you credits for it. Thank you Thomas for helping me out once again!

     
<< < 1 2 (Page 2 of 2)

Log in to post a comment.