-
-
Notifications
You must be signed in to change notification settings - Fork 158
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
Deprecate Window
foreign
kwarg and Window.focus
input_only
kwarg
#3234
Conversation
Window
foreign
kwarg and Window.focus
input_only
kwarg
Also added another deprecation for the Now the only think left to address in porting |
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.
Makes sense, LGTM 👍
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.
Accroding to this commit the SDL_WINDOW_FOREIGN
is not removed. It's renamed to SDL_WINDOW_EXTERNAL
.
However I approve to deprecate this kwarg.
In Window.__init__
we create a SDL window, However SDL_WINDOW_EXTERNAL
is a flag for "window not created by SDL". Setting this kwarg doesn't make any sence.
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.
LGTM
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.
LGTM I guess, external would be a clearer keyword anyway if we need it for some reason (integration with Tkinter maybe?)
I was looking at compiling
Window
under SDL3, and seems likeSDL_WINDOW_FOREIGN
is now gone, with no mention or a replacement in SDL3. The easiest thing to do now seems to be undocumenting, and the code now raises a deprecation warning if theforeign
kwarg is received.