-
-
Notifications
You must be signed in to change notification settings - Fork 160
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
Utility Window implementation. #3226
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nipicks and versionadded aside, I'd be happy to see this in. A week ago I actually needed this feature and ended up using ctypes to achieve it, it's like you read my mind.
aa92510
to
2733685
Compare
|
I love the way you're thinking but I think it's the other way around. SDL3 is utility, SDL2 is skip taskbar. |
@yunline @Starbuck5 So, what's the decision? |
I wasn't asked, but I think it's best to follow sdl3. plus, |
I also vote for leaving it as |
SDL docs said: "window should be treated as a utility window, not showing in the task bar and window list". From the docs we can see "utility window" is a broader concept than "skip taskbar window". They are not the same. Some window environments don't have a task bar, they use window list Some window environments use dock Although "skip_task_bar" could be more clear for Windows users, "utility" is more universal on all platforms. So I vote for "utility". |
Then it's |
Co-authored-by: 云line <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Normally I would complain about adding new API that isn't cross platform, but in the case of Window
I guess we already have enough API that isn't cross platform so it shouldn't be out of place.
Thanks for the PR! 🎉
Adds
pygame.window.Window(utility=True)
which makes the window not appear in the taskbar (+pygame.window.Window.utility
to get if this option is enabled for the window).Note: SDL might not support this for all platforms (macOS?).