You are not logged in.
The window shows up 700x500+0+0 the configuration to 704x527+-2+-25 happens on the parent (the window decoration) so likely by the WM and not the client.
As mentioned one might argue that this is "correct" (as PSize/USize are stated to be in unframed metrics and there's no explicit statement for PPosition/UPosition) - but what does not fit into this picture is the xterm behavior in #21
Offline
but what does not fit into this picture is the xterm behavior in #21
The only difference I can see is that xterm has NorthWest window gravity, while QMainWindow has Static window gravity.
Offline
D'ohh - missed thah. Why in gods name…
If the win_gravity is Static , the window manager frame is positioned so that the inside border of the client window inside the frame is in the same position on the screen as it was when the client requested the transition from Withdrawn state.
and/but that's also the case for Qt 6.9 (and not QMainWindow related)
The implicit default is NorthWest and I don't see why Qt would not use that.
Offline
and/but that's also the case for Qt 6.9 (and not QMainWindow related)
Yeah, the only difference between Qt 6.9 and Qt 6.10 is the latter has user specified location: 0, 0.
So:
- xterm: NorthWest gravity with position 0, 0 -> okay.
- Qt 6.9: Static gravity without position -> okay.
- Qt 6.10: Static gravity with position 0, 0 -> fails.
This should definitely be fixed in Qt, but Openbox could be smarter when a client is buggy and tries to position itself off-screen.
The implicit default is NorthWest and I don't see why Qt would not use that.
It uses static gravity by default unless the positionPolicy is WindowFrameInclusive:
https://github.com/qt/qtbase/blob/d8bb4 … 1427-L1432
But QWindow is WindowFrameExclusive by default:
https://github.com/qt/qtbase/blob/d8bb4 … w_p.h#L130
Offline
I found that Openbox actually tries to ensure that the window is within the screen, but misses the case when the window is statically positioned. I submitted a patch:
https://github.com/Mikachu/openbox/pull/32
The openbox package version 3.6.1-14 contains this fix.
Last edited by City-busz (2025-10-13 22:26:10)
Offline