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

[DONOTMERGE] wayland: Implement support for surface suspension #4479

Closed
wants to merge 1 commit into from

Conversation

flibitijibibo
Copy link
Collaborator

This is a patch to support proper window occlusion events with Wayland. It should NOT be merged until this protocol has been finalized:

https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/99

@flibitijibibo flibitijibibo marked this pull request as draft June 28, 2021 17:53
@flibitijibibo flibitijibibo self-assigned this Aug 16, 2021
@flibitijibibo flibitijibibo added the enhancement New feature or request label Aug 16, 2021
@flibitijibibo flibitijibibo added the help wanted Extra attention is needed label Oct 25, 2021
@flibitijibibo flibitijibibo removed the help wanted Extra attention is needed label Jan 20, 2022
@flibitijibibo flibitijibibo added the abandoned Bug has been abandoned for various reasons label May 9, 2022
@flibitijibibo
Copy link
Collaborator Author

We're approaching the 1-year mark and it seems like this protocol isn't going to happen, so I'm going to bail on this - this isn't strictly required in SDL since the driver is supposed to be doing the core of the work here, but from what I can tell it's something middleware vendors want but the protocols group 100% does not want. If this ever exists it will likely be a vendor-specific protocol from either wlroots or KWin, similar to the early server-side decoration protocol.

@flibitijibibo flibitijibibo deleted the wl-suspension branch May 9, 2022 22:38
@flibitijibibo
Copy link
Collaborator Author

Today's wayland-protocols release includes surface suspension via an xdg_shell update, so this could be revived if anyone needs it.

@tokyovigilante
Copy link

tokyovigilante commented Jan 25, 2024

Hi, I would be interested in this as I am trying to add SDL (and Dear IMGUI) as a UI library for a non-game app and am using a foreign event loop (libdispatch), as most of the time the app is playing audio and may wish to respond to key events on a device with the screen off, or on desktop with the UI hidden.

However this would also ideally have the entire SDL event management process be non-blocking (my current code is capable of monitoring FDs for events and triggering callbacks when received, so I'm having trouble integrating the SDL input events in particular from a somewhat inflexible while event = SDL_PollEvent()... type setup. I'd much prefer something like OnSDLEvent(callback) and if that is an input event, update my state, and if it is a Wayland frame callback, render the next UI frame.
[EDIT]: Actually it turns out that the new SDL3 callback entry points API and SDL_AddEventWatch` might be just what I need!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
abandoned Bug has been abandoned for various reasons enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants