Ian Douglas Scott
355b142c52
When cosmic-workspaces is shown, render only layer-shell surfaces
...
This allows `cosmic-workspaces` to rely on cosmic-comp for rendering the
background, and just have transparency. This should be a more reliable
and performant way of doing things, at least for now.
Instead of adding another opaque bool argument, this defines an
`ElementFilter` enum, which makes calls more readable.
Window surfaces are still included in screencopy, as needed for the
workspace previews.
2024-07-15 17:12:05 +02:00
Victoria Brekenfeld
2d0f1cbf2b
chore: smithay update
2024-07-02 13:15:30 +02:00
Victoria Brekenfeld
8da3ac6d75
kms: Fix frame scheduling
2024-06-27 18:15:18 +02:00
Victoria Brekenfeld
26ccb653b7
output: Store position as u32 and offset bad configs
2024-06-27 12:34:51 +02:00
Victoria Brekenfeld
76fca0c591
chore: Fix smithay version
2024-06-26 16:18:08 +02:00
Victoria Brekenfeld
449048bdc5
kms: Fix unreachable code during forced queued redraws
2024-06-26 12:59:33 +02:00
Victoria Brekenfeld
707eace679
kms: Don't leak an EGLImage on every import
2024-06-26 12:59:33 +02:00
Victoria Brekenfeld
eea93d543e
state: Correctly update primary output
2024-06-26 12:59:33 +02:00
Victoria Brekenfeld
ddcb435632
debug: Fix running with new kms backend
2024-06-26 12:59:33 +02:00
Victoria Brekenfeld
bfbf20d61d
kms: fixup device-usage logic
2024-06-26 12:59:33 +02:00
Victoria Brekenfeld
977ad674e5
kms: Fix initial output placement
2024-06-26 12:59:33 +02:00
Victoria Brekenfeld
12fab6e220
kms: Don't block surface-threads on startup cond
2024-06-26 12:59:33 +02:00
Victoria Brekenfeld
31ff17a323
kms: Limit frame-callbacks to one per refresh
2024-06-26 12:59:33 +02:00
Victoria Brekenfeld
92f3dbce01
chore: Cleanup
2024-06-26 12:59:33 +02:00
Victoria Brekenfeld
800e01a484
kms: Fix shaders for offscreen rendering
2024-06-26 12:59:33 +02:00
Victoria Brekenfeld
952f73dcc4
kms: Don't send render-states for mirrored renders
2024-06-26 12:59:33 +02:00
Victoria Brekenfeld
1a28e43aa7
kms: Fix broken mirroring with different scales but same mode
2024-06-26 12:59:33 +02:00
Victoria Brekenfeld
7373567af1
kms: Fix output mirroring not working across gpus
2024-06-26 12:59:33 +02:00
Victoria Brekenfeld
469a366207
kms: New backend
...
New backend utilizing a thread per surface for precise frame
scheduling.
2024-06-26 12:59:33 +02:00
Ian Douglas Scott
4f076e0753
Update smithay, with xwayland shell, Cow, etc.
2024-05-21 19:31:50 +02:00
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
3eb6c02008
kms: Output mirroring
2024-05-07 12:25:15 +02:00
Victoria Brekenfeld
5d5a510691
state: Move shell behind RwLock
2024-04-16 18:50:54 +02:00
Victoria Brekenfeld
647deb81f1
shell: Move seats into shell
2024-04-16 18:50:54 +02:00
Ian Douglas Scott
de544e1d31
Update smithay to latest commit
2024-04-09 11:26:36 +02:00
Victoria Brekenfeld
b40d153809
cosmic-screencopy-v2
2024-03-25 16:55:31 +01:00
Victoria Brekenfeld
f1d8225ddb
kms: Disable frame time prediction (for now)
2024-03-21 17:49:30 +01:00
Victoria Brekenfeld
d341cb8b86
debug: Drop puffin integration
2024-03-21 17:49:06 +01:00
Ian Douglas Scott
a1c8b3aa3e
Add support for profiling using tracy
2024-03-20 23:55:21 +01:00
Victoria Brekenfeld
3eb7e5f82e
shell: implement minimize
2024-03-04 19:20:52 +01:00
Ian Douglas Scott
3036448c19
Update Smithay, with Window that supports X11 surfaces
2024-02-22 17:49:46 +01:00
Victoria Brekenfeld
f9f8af10a0
kms: Drop early_import as it seems to hurt performance
2024-02-19 13:09:49 +01:00
Victoria Brekenfeld
1c3d45c155
kms: Rely on the compositor to skip empty frames
2024-02-19 13:09:49 +01:00
Victoria Brekenfeld
db27fa483d
kms: Optimize frame scheduling
2024-02-19 13:09:49 +01:00
Victoria Brekenfeld
db38cf434a
kms: Fixup use SCANOUT flag to fix stride issues
2024-02-19 13:09:49 +01:00
Victoria Brekenfeld
d8c1087ebe
dbus: Add power-daemon hotplug handling
2024-02-19 13:09:49 +01:00
Victoria Brekenfeld
83ec68d383
chore: Update smithay
2024-02-19 13:09:49 +01:00
Victoria Brekenfeld
3d3864b357
kms: Also try other nodes for dmabuf import
2024-02-19 13:09:49 +01:00
Victoria Brekenfeld
ef3486f7e0
kms: Track used devices and free resources
2024-02-19 13:09:49 +01:00
Victoria Brekenfeld
54f2d2c67e
chore: Update smithay
2024-02-06 15:31:01 +01:00
Victoria Brekenfeld
aac287984b
kms: Drop VulkanAllocator code
2024-01-23 15:24:52 +00:00
Victoria Brekenfeld
ba44289844
kms/deps: Fix nvidia 545 beta
2023-10-25 19:41:55 +02:00
Ian Douglas Scott
8561ab672b
Update smithay
2023-10-25 19:41:55 +02:00
Ashley Wulber
d9e3d60a37
refactor: use a static color for CLEAR_COLOR
2023-10-25 19:41:55 +02:00
Ashley Wulber
abbe94e6e1
feat: theme integration
...
refactor: only apply updates if there is a change in the theme
refactor: include theme in state
cleanup: theme integration
2023-10-25 19:41:55 +02:00
Victoria Brekenfeld
2e962366d4
kms: Handle subpixel layouts
2023-10-25 19:41:55 +02:00
Victoria Brekenfeld
69563420fb
shell: Rework maximize/fullscreen
2023-10-25 19:41:55 +02:00
Victoria Brekenfeld
72df9d07e6
shell: One workspace per output
2023-10-25 19:41:55 +02:00
Victoria Brekenfeld
02d818bfee
don't fail when encountering render-only devices
2023-10-17 16:40:24 +02:00