-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Split out Surface from Window, take 2
#4264
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
base: master
Are you sure you want to change the base?
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.
I'm not sure about the cursor part of the API yet, those should likely end up platform specific.
I think the option to get size should be present, not sure about the option to set request a size change, but I think it's also generally available.
Monitor stuff I'd also drop, except for current_monitor. Like the rest doesn't really make much sense and just are carried from old winit. pre_present_notify is fine.
For downcasting, I'd do the same as macos_handler, though, the backend itself will implement the cast if it makes sense.
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.
See above.
In general, that can be emulated on platforms where it's not possible, like Wayland, just by setting the e.g. what to include in the event, etc. I'd leave this for the future discussions when we'd come to adding subsurfaces. |
af90276 to
9d5f4ff
Compare
9d5f4ff to
9b49b5b
Compare
|
@kchibisov mind taking a look at this? |
|
I'm not sure much got addressed from what I've requested before, e.g. wrt to cursor APIs, etc. We've also discussed with other maintainers the state of this and inclined to go with it after a batch of 0.31 changes, since we were not entirely sure what should be in |
|
Should be worth mentioning #3928 here (so that others can find it via that issue too) which describes how to implement this For my use-case having a generic subsurface implementation in EDIT: Note that the linked issue doesn't mention nor compare Android, which is a popular backend of |
changelogmodule if knowledge of this change could be valuable to usersUpdated version of #3942 (split out
SurfacefromWindow) with the backend split in place. This is needed to implement popups and subsurfaces, as their behaviours do not match.Remaining questions
Surface?Surfacebe handled? I've included a really primitive solution, but there could be better ways.