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: request for show/hide/focus window functions #1030

Open
edubart opened this issue Apr 13, 2024 · 1 comment
Open

sokol_app.h: request for show/hide/focus window functions #1030

edubart opened this issue Apr 13, 2024 · 1 comment

Comments

@edubart
Copy link
Contributor

edubart commented Apr 13, 2024

This is a feature request for sokol_app to have more functions that gives more control its window on desktop, such as:

  • show window
  • hide window
  • raise window focus
  • start application without window focus
  • start application with window hidden

I saw a solution for this in #741 but it's for Linux only, would be nice to have a solution that cover major desktops environments (Linux, Windows, MacOS).

If someone already did extensions for this targeting other platforms (Windows, MacOS), please share the code snippet :)

@floooh
Copy link
Owner

floooh commented Apr 13, 2024

Eventually I want to get more window controls like this into sokol_app.h, but currently it's not a high priority.

One cheap fix that would make sense in the short term is a similar function like sapp_win32_get_hwnd() and sapp_macos_get_window() for X11.

That would allow to workaround that limitation without having to write an "extension header" like detailed in #741.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants