Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sokol_app.h: initialize window with resizing disabled #380

Open
serkonda7 opened this issue Sep 18, 2020 · 1 comment
Open

sokol_app.h: initialize window with resizing disabled #380

serkonda7 opened this issue Sep 18, 2020 · 1 comment

Comments

@serkonda7
Copy link

For the @vlang project I need a config that keeps sokol windows at a fixed size (no resizing).
I tried calling sapp_consume_event() in the callback method until I found out it's not implemented on Desktop platforms.
My attempts to implement it in sokol failed, so it would be very nice if you could do it.

@floooh
Copy link
Owner

floooh commented Sep 21, 2020

I think the best way to implement this is via a config flag in sapp_desc, and then when creating the window omit the platform-specific "resizable flag" (in case you want to hack this yourself for now).

Later it might make sense to add more such flags (e.g. for removing window chrome).

@floooh floooh changed the title sokol_app.h: sapp_consume_event() for Linux, Windows and macOS sokol_app.h: initialize window with resizing disabled Sep 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants