RGFW icon indicating copy to clipboard operation
RGFW copied to clipboard

The client area of the window extends beyond the title bar on scaled displays.

Open huangfuyu opened this issue 10 months ago • 12 comments

"I have two screens. The window displays correctly on the main screen, but the client area appears abnormal on the secondary screen. The resolutions of the two screens are different."

This is the image of the main screen. Image

This is the image of the secondary screen. Image

huangfuyu avatar Apr 18 '25 12:04 huangfuyu

That's very strange. I can't seem to recreate that with my current setup. Could you tell me the resolutions of your monitors and which one is the primary monitor?

ColleagueRiley avatar Apr 18 '25 14:04 ColleagueRiley

Got it. The issue above occurs when the scaling ratios of my two screens are different. The scaling and layout of my primary screen is set to 125%, while the secondary screen is set to 100%.

huangfuyu avatar Apr 19 '25 01:04 huangfuyu

Ah, I figured it had something to do with scaling. I'll test that.

The title bar should still be scaled with the content, so this is still a strange bug to me.

ColleagueRiley avatar Apr 19 '25 01:04 ColleagueRiley

The buffers and portable GL examples don't have this issue.

ColleagueRiley avatar Apr 19 '25 01:04 ColleagueRiley

It seems like it's related to the RGFW_windowNoResize flag.

ColleagueRiley avatar Apr 19 '25 01:04 ColleagueRiley

缓冲区和便携式 GL 示例没有这个问题。

On my computer, the issue still persists.

Image

Image

huangfuyu avatar Apr 19 '25 01:04 huangfuyu

This problem also occurs for examples/basic/basic, so it's not just a software rendering issue.

Image

ColleagueRiley avatar Apr 19 '25 15:04 ColleagueRiley

This only happens when the RGFW_windowNoResize flag is applied.

It is strange that in your screenshot, the examples/buffer/buffer example has this issue. When it doesn't use that flag.

ColleagueRiley avatar Apr 19 '25 15:04 ColleagueRiley

It seems that RGFW_windowNoResize made it so the window didn't include the WS_THICKFRAME flag.

This issue should be fixed with the latest commits.

ColleagueRiley avatar Apr 19 '25 15:04 ColleagueRiley

Unfortunately, this problem still exists on my computer. Image

huangfuyu avatar Apr 20 '25 00:04 huangfuyu

I'm unable to replicate the bug.

(On the larger 1920x1080 primary screen with 125% scaling.)

Image

(On the smaller 1366x765 secondary screen with 100% scaling)

Image

With extended displays, both in landscape mode.

Can you give other information about the monitors to help recreate the bug?

ColleagueRiley avatar Apr 21 '25 18:04 ColleagueRiley

My two screens both have a resolution of 1920×1080, but the main screen is set to 125% scaling, while the secondary screen is set to 100% scaling.

Image

Image

huangfuyu avatar Apr 22 '25 11:04 huangfuyu

I was able to test the same monitor arrangement and I was still unable to recreate the issue.

Are you sure that was done using the newest version of RGFW?

ColleagueRiley avatar May 16 '25 14:05 ColleagueRiley

I'm closing this issue because it has been unable to be recreated and it has been left stagnant for some time.

If there are any updates or anyone is able to recreate this issue, please reopen this issue or file a new one.

ColleagueRiley avatar May 19 '25 02:05 ColleagueRiley