Victoria Brekenfeld
0116bc0dc2
element/surface: Fix corner radius of SSD windows
2026-01-13 19:12:22 +01:00
Victoria Brekenfeld
8f7dc7f00c
render/outline: Handler inner/outer radius properly and ceil thickness
2026-01-13 19:12:22 +01:00
Victoria Brekenfeld
d5734b4b68
render/shaders: Use high precision for everything
2026-01-13 19:12:22 +01:00
Victoria Brekenfeld
d1fb9087b2
render/shadow: Adjust alpha by light/dark mode
2026-01-13 19:12:22 +01:00
Victoria Brekenfeld
8c0136cec0
render/shadow: Tweak shadow variables
2026-01-13 19:12:22 +01:00
Victoria Brekenfeld
2c9857fdfc
shaders: Use half-pixels for the outline
2026-01-13 19:12:22 +01:00
Victoria Brekenfeld
fc7bbd7814
render/shadow: Add physical 1px safety margin
2026-01-13 19:12:22 +01:00
Victoria Brekenfeld
40d7fea1cc
render: Fix gap between outline and windows
2026-01-13 19:12:22 +01:00
Victoria Brekenfeld
b6f0855a31
shell/elements: Fix corners order for clipping/shadows
2026-01-13 19:12:22 +01:00
Victoria Brekenfeld
59fd732982
shell/elements: Handle clipping and shadows
2026-01-13 19:12:22 +01:00
Victoria Brekenfeld
94d49210e6
shaders: Add drop-shadow shader
2026-01-13 19:12:22 +01:00
Victoria Brekenfeld
2f39c9682c
shaders: Add clipped-surface shader
2026-01-13 19:12:22 +01:00
Victoria Brekenfeld
7b8fca9ece
wayland/dmabuf: Send initial surface feedback
2026-01-08 00:20:18 +01:00
Victoria Brekenfeld
d17a4ead68
kms/surface: Simpify surface feedback creation
2026-01-08 00:20:18 +01:00
Victoria Brekenfeld
85d8b8dc06
kms/surface: Clear feedback on resume
2026-01-08 00:20:18 +01:00
Victoria Brekenfeld
2eff4607bd
kms/device: Advertise texture_formats instead of render_formats
2026-01-08 00:20:18 +01:00
Victoria Brekenfeld
ca00df0b37
kms: Track active clients instead of active buffers
2026-01-08 00:20:18 +01:00
Victoria Brekenfeld
6288789842
kms: Only pause device after all surfaces are successfully suspended
2025-12-04 22:29:39 +01:00
Victoria Brekenfeld
7c3e18b588
surface: Don't crash due to weird state after resume
2025-12-04 22:29:39 +01:00
Vukašin Vojinović
1f7f0c70b7
chore: format for Rust 2024
2025-10-22 23:55:11 +02:00
Vukašin Vojinović
0a8da05847
fix(kms): early exit when iterating over crts
...
Clippy noted that this loop doesn't actually loop, so maybe this fixes some issues.
2025-10-22 23:55:11 +02:00
Vukašin Vojinović
b6c5d00bec
cargo fmt
2025-10-22 23:55:11 +02:00
Vukašin Vojinović
5e9ea93819
chore: manual clippy
2025-10-22 23:55:11 +02:00
Vukašin Vojinović
0847247c33
chore: clippy
2025-10-22 23:55:11 +02:00
Ashley Wulber
3465ce7602
feat: corner radius for CosmicMapped
2025-10-03 20:11:16 +02:00
Ashley Wulber
c6320eec0c
fix: support per-corner radius
...
also adjusts the radius by half of the outline thickness. I believe this is the radius at the center of the outline.
2025-10-03 20:11:16 +02:00
Ashley Wulber
b3aa10436a
feat: corner-radius protocol support
2025-10-03 20:11:16 +02:00
Victoria Brekenfeld
b83e9f1d32
config: Make read_outputs failable
...
Previously we ignored when we had no output configuration
**and** failed to apply the automatically created one.
This leads to two problems:
- If this happens on startup, we end up with no outputs being added to the shell and we quit.
- If this happens later, we might end up in an inconsistent state, where the shell thinks we have an output, when it didn't light up for similar reasons.
Thus `read_outputs` is failable and handling that very much depends on
the where is was called from, because `read_outputs` doesn't know what
configuration was active before.
Thus make it failable and provide useful mitigations everywhere
possible:
- Try to enable just one output in case we fail on startup.
- Don't enable any additional outputs, when we fail on hotplug.
- Log the error like previously in any other case (and come up with more
mitigations, once we understand these cases better).
2025-09-15 09:13:00 +02:00
Victoria Brekenfeld
cd1117080c
kms: Don't join on DrmSurface drop
2025-09-11 00:20:14 +02:00
Victoria Brekenfeld
7684cd1b2c
render: Fix shader obj leak
2025-09-08 14:47:06 +02:00
Victoria Brekenfeld
a0f8c4ed99
kms/surface: Cleanup unused software-rendering code
2025-09-08 13:07:40 +02:00
Victoria Brekenfeld
3935de018e
kms: evdi cursor work around
2025-09-08 13:07:40 +02:00
Victoria Brekenfeld
b7fd4bc781
kms/device: Fix render_formats
2025-09-08 13:07:40 +02:00
Victoria Brekenfeld
18a1ba2d26
kms: Don't consider software devices for primary
2025-09-08 13:07:40 +02:00
Victoria Brekenfeld
6eb5ca1f94
kms: Close drm fds via session
2025-09-08 13:07:40 +02:00
Victoria Brekenfeld
cad5ed8945
kms: Don't attempt dmabuf import on software devices
2025-09-08 13:07:40 +02:00
Victoria Brekenfeld
70cd1842c1
kms/device: Don't advertise drm_node on software devices
2025-09-08 13:07:40 +02:00
Victoria Brekenfeld
a840b52930
chore: smithay update
2025-09-08 13:07:40 +02:00
Ian Douglas Scott
3f74a22cca
kms/surface: Fix transform used for blits
...
Use the same logic used `submit_buffer`. This fixes corruption in OBS
when trying to capture a rotated output.
2025-09-02 17:12:37 +02:00
Ashley Wulber
bb8e066d6d
feat(config): load cosmic-randr output Lists
2025-08-26 11:30:56 -04:00
Ashley Wulber
416b66b776
refactor(output config): move to config crate
...
this allows the greeter to easily sync to the user config
2025-08-26 11:30:56 -04:00
Ian Douglas Scott
905d021552
screencopy: Use send_success_when_ready for other forms of capture
...
A little annoying to add a `loop_handle` argument to `render_output`,
but generally straightforward.
2025-08-21 17:09:49 +02:00
Ian Douglas Scott
10c05bc1d4
kms/surface: Don't send screencopysuccess() until sync point is reached
2025-08-21 17:09:49 +02:00
Ian Douglas Scott
28e9024681
kms/surface: Define a PendingImageCopyData, instead of using tuple
...
Adding anything else to this tuple is awkward; defining a simple struct
makes this cleaner.
This also adds a `sync` property, which will come in handy later.
Containing simply the same-named argument that was passed to
`submit_buffer`.
2025-08-21 17:09:49 +02:00
Ian Douglas Scott
f0e0084608
Update smithay, and adjust to use sync points from blit calls
2025-08-21 17:09:49 +02:00
Vukašin Vojinović
7f7ab8bcbe
chore: Rust 2024 edition
...
Set the formatting style to 2021 edition to avoid disrupting existing work.
Remove when possible.
2025-08-21 13:10:11 +02:00
Victoria Brekenfeld
310cf212eb
kms/device: Don't reconfigure existing outputs on connector_added
2025-08-20 19:41:43 +02:00
Ian Douglas Scott
2fbf0081ea
Fix compile warnings on nightly
...
Should fix CI test.
2025-08-12 18:03:27 -04:00
Ian Douglas Scott
4031f584ef
Don't crash if GreeterAccessibilityState::config() fails
...
`cosmic-comp` should run without needing the greeter to be running (or
installed).
2025-08-12 18:03:27 -04:00
Ashley Wulber
b3a67bca50
feat: sync state with greeter
2025-08-12 12:51:54 -04:00