You are not logged in.

#26 2025-10-13 09:19:47

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,058

Re: PCManFM-Qt : title bar outside screen

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 hmm

Online

#27 2025-10-13 16:44:30

City-busz
Package Maintainer (PM)
From: Budapest, Hungary
Registered: 2010-12-27
Posts: 190
Website

Re: PCManFM-Qt : title bar outside screen

seth wrote:

but what does not fit into this picture is the xterm behavior in #21 hmm

The only difference I can see is that xterm has NorthWest window gravity, while QMainWindow has Static window gravity.

Offline

#28 2025-10-13 17:09:22

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,058

Re: PCManFM-Qt : title bar outside screen

D'ohh - missed thah. Why in gods name…

ICCCM wrote:

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.

Online

#29 2025-10-13 18:17:41

City-busz
Package Maintainer (PM)
From: Budapest, Hungary
Registered: 2010-12-27
Posts: 190
Website

Re: PCManFM-Qt : title bar outside screen

seth wrote:

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.

seth wrote:

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

#30 2025-10-13 22:25:29

City-busz
Package Maintainer (PM)
From: Budapest, Hungary
Registered: 2010-12-27
Posts: 190
Website

Re: PCManFM-Qt : title bar outside screen

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

Board footer

Powered by FluxBB