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

Fix some minor SDL2 paper cuts #831

Merged
merged 6 commits into from
Jul 15, 2023
Merged

Conversation

seanfarley
Copy link
Collaborator

These patches add the ability to get/set the gui window's title along with toggling fullscreen.

This adds a new method to the interface so that an implementation can
choose to add a title to the titlebar in the OS-gui-sense.
This adds an implementation to SDL2 to allow the user to safely set and
get the title of the gui window.

Note that we need to wrap this call in `sdl2:in-main-thread` due to some
desktop environments requiring gui changes to be called in the main
thread, most famously macOS.
This adds a new method to the interface so that an implementation can
add a fullscreen feature.
This adds an implementation to SDL2 to allow the user to safely set the
fullscreen of a gui window.

Note that we need to wrap this call in `sdl2:in-main-thread` due to some
desktop environments requiring gui changes to be called in the main
thread, most famously macOS.
This allows the user to specify whether or not to use the native
fullscreen in macOS. Default is nil.
This adds a new module for frame commands with an initial command for
toggling fullscreen.
Copy link
Member

@cxxxr cxxxr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the nice PR.
I have checked it on windows and mac and it seems to be working properly.

@cxxxr cxxxr merged commit 0b5f0c5 into lem-project:main Jul 15, 2023
1 check passed
This was referenced Jul 16, 2023
@seanfarley seanfarley deleted the gui-tweaks branch July 16, 2023 03:19
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

Successfully merging this pull request may close these issues.

None yet

2 participants