Bug 372475

Summary: Wrong window position after restart in fluxbox
Product: [Applications] krusader Reporter: Chocimier <chocimier>
Component: generalAssignee: Krusader Bugs Distribution List <krusader-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: alex.bikadorov, krusader-bugs-null
Priority: NOR    
Version: 2.5.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description Chocimier 2016-11-14 15:48:25 UTC
With fluxbox 1.3.7 after krusader restart window moves up by height of window bottom border.
Comment 1 Alex Bikadorov 2016-11-22 18:31:41 UTC
Could be already fixed by 2a6103ef5 in master.

Can you build from source?
Comment 2 Chocimier 2016-11-28 08:18:14 UTC
Master version (c246117) indeed restores with no shift. Good job.
Now problem is that master uses position saved by 2.5.0, rather than by oneself.
So profile has to be removed to get restoring right.
Comment 3 Alex Bikadorov 2016-11-28 18:56:25 UTC
Now I experience a small shift by width AND height in KDE (dunno why this didn't occur before).

Doc. references here:
http://doc.qt.io/qt-5.7/restoring-geometry.html
and more specific
http://doc.qt.io/qt-5.7/application-windows.html#x11-peculiarities

>  Basic rule: There's always one user who uses a window manager that breaks your assumption, and who will complain to you.

oh. Cool.

I guess this can't be totally solved now. pos() and size() seems to be equivalent to geometry() and KF5 doesn't have anything either.

>Now problem is that master uses position saved by 2.5.0, rather than by oneself.
>So profile has to be removed to get restoring right.

What do you mean? Compiled and installed applications both use the same config file. There is no other.
Comment 4 Chocimier 2016-11-28 19:45:30 UTC
> Now problem is that master uses position saved by 2.5.0, rather than by oneself
I can not reproduce that anymore, never mind.

> Now I experience a small shift by width AND height in KDE
If one way works for some users and second for another, that can become a setting.

> There's always one user who uses a window manager that breaks your assumption, and who will complain to you.
Since it is not I anymore, closing. Thanks.