Commit graph

13 commits

Author SHA1 Message Date
Ian Douglas Scott
47f8c1da38 Define a advertised_node_for_client instead of duplicating code
Can't use this in `SecurityContextHandler` since it only has a `ClientId`,
not a `Client`.
2024-05-15 13:12:24 +02:00
Ian Douglas Scott
a9740e5040 Change how COSMIC_ENABLE_WAYLAND_SECURITY/privileged is handled
Manually starting `cosmic-panel` was not working properly in release
builds, because without `cfg!(debug_assertions)`, the `privileged` flag
wasn't sent on the panel, so it couldn't be propagated to the applets,
which also fail the `client_has_no_security_context()` check.

I don't see a way to have both the `cfg!(debug_assertions)` check and
`COSMIC_ENABLE_WAYLAND_SECURITY`. Now only the latter is used, and it
determines the value of `privileged` for clients started normally. In
the future, we could make the default value of
`COSMIC_ENABLE_WAYLAND_SECURITY` depend on `cfg!(debug_assertions)` if
desired.

This also corrects the inconsistency that the `cfg!(debug_assertions)`
check wasn't applied to the render-node-specific Wayland sockets.
2024-05-08 13:10:07 +02:00
Victoria Brekenfeld
ef3486f7e0 kms: Track used devices and free resources 2024-02-19 13:09:49 +01:00
Victoria Brekenfeld
4e12957169 chore: Update deps 2023-10-02 21:51:49 +02:00
Victoria Brekenfeld
a308997fd4 chore: Update smithay 2023-07-12 18:57:38 +02:00
Victoria Brekenfeld
bc49507353 kms: Dmabuf feedback support 2023-04-05 20:06:24 +02:00
Victoria Brekenfeld
7ad37946d3 Revert "kms: Dmabuf Feedback support"
This reverts commit c8bb417d9b.
2023-03-23 14:58:29 +01:00
Victoria Brekenfeld
c8bb417d9b kms: Dmabuf Feedback support 2023-03-23 13:51:33 +01:00
Victoria Brekenfeld
35de500c00 chore: update smithay + switch to tracing 2023-02-24 17:43:07 +01:00
Victoria Brekenfeld
1d28574088 xwayland: Add initial support 2023-01-18 20:25:32 +01:00
Victoria Brekenfeld
39de286d51 cargo fmt 2022-07-04 16:01:06 +02:00
Victoria Brekenfeld
270f06182e backend: Adopt to new wayland-display handling 2022-07-04 16:01:06 +02:00
Victoria Brekenfeld
742780ddc3 kms: Create socket variants for different gpus
To make it possible for clients to choose a gpu,
we create special sockets per gpu, that advertise
their gpu to clients.
2022-03-22 12:41:54 +01:00