SDL icon indicating copy to clipboard operation
SDL copied to clipboard

Resizing Issue with SDL_WINDOW_BORDERLESS on Xorg [SDL3]

Open Farouk123456 opened this issue 1 year ago • 5 comments

Hello I’m learning vulkan and want to create a custom title bar, so I used SDL_WINDOW_BORDERLESS to remove decorations but then resizing got super glitchy i.e. image not updating for seconds I don’t think it’s an issue in swap chain recreation because if I turn on decoration everything works fine also if I run my code in Wayland it works as well its only when using borderless on x11 that I get glitches

here is my code https://pastebin.com/kJmqzVfM

I’m using SDL3 and HitTesting for my window Any help would be appreciated

Farouk123456 avatar Jun 01 '24 21:06 Farouk123456

The issue definitely seems to be in hittesting on X11 if i implement my own resizing it is buttery smooth Maybe i just implemented hittesting wrong ?

Farouk123456 avatar Jun 02 '24 11:06 Farouk123456

Can you provide a link to a full project, so we can build and run it here?

slouken avatar Jun 03 '24 00:06 slouken

I already did its only that file in the pastebin link Just compile it with clang and it will work

Farouk123456 avatar Jun 03 '24 06:06 Farouk123456

Looked into the SDL code, seems like this should fix it https://github.com/libsdl-org/SDL/pull/7686

Farouk123456 avatar Jun 05 '24 16:06 Farouk123456

Implemented #7686 myself with vulkan IDK why the merger was saying that vulkan doesn't work with it because it works like a charm for anyone who is interested, here is my code:

Vulkan Engine.zip

Farouk123456 avatar Jun 08 '24 21:06 Farouk123456

I believe this is resolved by #7686, which I just merged.

icculus avatar Dec 04 '24 17:12 icculus