Victoria Brekenfeld
909ca8cf9d
zoom: Seperate animating/current focal_point
2025-02-20 23:51:55 +01:00
Victoria Brekenfeld
b92879e60b
zoom: Fix config/state changes
2025-02-20 23:51:55 +01:00
Victoria Brekenfeld
f72d2b91f3
shell: Add zoom UI
2025-02-20 23:51:55 +01:00
Victoria Brekenfeld
531a1c951f
zoom: Handle multiple outputs
2025-02-20 23:51:55 +01:00
Victoria Brekenfeld
2e2943d99c
render: Scale contents according to zoom_level
2025-02-20 23:51:55 +01:00
András
2678cf41b2
Reactivated num/caps-lock upon keyboard layour change
2025-02-13 11:45:47 +01:00
Paul Daniel Faria
f1f9d205be
Make numlock state on boot configurable
...
Make numlock state on boot configurable
This will expose 3 settings for numlock behavior:
1. Numlock is off on boot (this is the current default behavior)
2. Numlock is on on boot
3. Numlock will restore the state from the last boot
Fixes #369
* Address comments:
Get keyboard after create_seat called rather than returning from
create_seat.
Use constants rather than magic numbers for keypress.
Only save updated modifier state after keypresses are handled/skipped.
* Remove unused import, fold other into existing use block.
2025-02-12 14:35:22 +01:00
Victoria Brekenfeld
afae9bb962
render: Scale indicator radius with scale
2025-02-07 13:32:30 +01:00
Victoria Brekenfeld
abda6619ff
render/cursor: Follow selected scale instead of wanted scale
2025-02-07 13:32:30 +01:00
Ian Douglas Scott
a3714b036e
Improve mirroring size/scale comparison
...
To determine if `mirroring_state` is needed, we want to compare the
untransformed dimensions of the source output to the target outputs
mode. The fact the mode comparision previously compared refresh rate
(since it compared the whole `Mode`) seems unintended.
We also re-create the `MirroringState` when the source output
dimensions changes.
2025-02-04 20:01:24 +01:00
Ian Douglas Scott
9963887ac5
Fix mirroring with scale on target output
...
The actual render will pass a scale other than 1.0 here, so this needs
to do the same.
2025-02-04 20:01:24 +01:00
Ian Douglas Scott
3f5c64f50f
Use HashMap entry API in a cleaner way
...
Careful use of the right `VacantEntry` and `OccupiedEntry` methods makes
this possible without hacks or lifetime errors.
2025-02-04 20:01:24 +01:00
Ian Douglas Scott
32f9ff3cac
Use untransformed texture in MirroringState::new_with_renderer
...
Apply inverse of output transform to mode to get render size, and apply
no transform during rendering. The transform of the output being
mirrored from shouldn't affect the final render.
Fixes issues when source output for mirroring has a transform, and also
fixes issues in https://github.com/pop-os/cosmic-comp/pull/1058
when this code is used for postprocessing, where this resulted in the
same transform being applied twice.
2025-02-04 20:01:24 +01:00
Victoria Brekenfeld
605bb63a4d
kms: Don't try to render inactive outputs
2025-01-21 13:35:53 +01:00
Ian Douglas Scott
6c7ec54bdb
Add a COSMIC_DISABLE_SYNCOBJ env var to disable syncobj protocol
...
If any issues with the syncobj protocol come up, or any issues we
suspect may be related to it, an env var may be helpful.
2025-01-16 19:43:51 +01:00
Ian Douglas Scott
9dddead15d
Add linux-drm-syncobj-v1 protocol
2025-01-15 20:20:53 +01:00
Ian Douglas Scott
005093b622
Update smithay-egui, egui
2025-01-15 20:08:02 +01:00
Victoria Brekenfeld
addcbc5039
kms: Don't try to restore modifiers, if we don't have any surfaces
2025-01-07 17:48:14 +01:00
Ian Douglas Scott
b685512127
Migrate away from Rectangle::from_loc_and_size
...
Deprecated in `smithay` by https://github.com/Smithay/smithay/pull/1621 .
2025-01-07 12:50:35 +01:00
Victoria Brekenfeld
42af2af37d
render: Fix race during startup
2025-01-07 12:09:42 +01:00
Victoria Brekenfeld
870e5be2a6
kms: Use scaled sizes for placing new outputs
2025-01-06 20:23:05 +01:00
Victoria Brekenfeld
bebd7c5c40
kms: Cleanup now that output_elements won't panic for uninitialized outputs
2025-01-06 20:23:05 +01:00
Victoria Brekenfeld
db13eea91c
shell: Allow active workspace to be None
2025-01-06 20:23:05 +01:00
Victoria Brekenfeld
3926aee5b6
debug: Fixup feature compilation
2025-01-06 20:23:05 +01:00
Victoria Brekenfeld
6be5009b37
kms: Allow diverging primary plane formats under certain conditions
2025-01-06 20:23:05 +01:00
Victoria Brekenfeld
b5cd62fd7a
kms: skip cursor updates for fullscreen content above the minimum refresh rate
2025-01-06 20:23:05 +01:00
Victoria Brekenfeld
adcb81bbe0
deps: Switch from edid-rs to libdisplay-info
2025-01-06 20:23:05 +01:00
Victoria Brekenfeld
546966bf15
drm_lease: Disable overlay planes when active
2025-01-06 20:23:05 +01:00
Victoria Brekenfeld
8b87d6524e
kms: Use new DrmOutput api
2025-01-06 20:23:05 +01:00
Victoria Brekenfeld
f12f4db0e1
chore: Update smithay
2025-01-06 20:23:05 +01:00
Victoria Brekenfeld
9b4127555e
kms/surface: Fix racy output disable
2024-12-12 14:29:50 +01:00
Victoria Brekenfeld
81b9fb179b
output-configuration: Support cosmic-ext v2
2024-11-27 09:37:01 +01:00
Victoria Brekenfeld
80965a61b9
kms: Adaptive VRR support
2024-11-27 09:37:01 +01:00
Victoria Brekenfeld
d72bf54628
deps: Update smithay
2024-11-27 09:37:01 +01:00
Victoria Brekenfeld
dbb51e827d
kms: Fix enabling outputs
2024-11-27 09:37:01 +01:00
Ian Douglas Scott
61692b21ad
Run cargo format
2024-11-18 18:24:53 +01:00
Ashley Wulber
8d5541b27f
fix: apply transform to damage before blitting
2024-11-13 16:33:43 +01:00
Victoria Brekenfeld
5207453157
kms: Don't substract for mirrored outputs
2024-10-25 10:42:38 +02:00
Ian Douglas Scott
ea27ec5e28
DPMS with wlr-output-power-management-unstable-v1 protocol
2024-10-25 10:31:24 +02:00
Victoria Brekenfeld
51c8588f89
render: Use render_input_order
2024-10-22 19:43:47 +02:00
Ian Douglas Scott
b8c429facb
Add COSMIC_DISABLE_DIRECT_SCANOUT env var
...
Like `anvil`. Useful for testing and working around issues.
2024-10-15 11:45:46 +02:00
Ian Douglas Scott
15a6425836
Set default output transform based on DRM panel orientation ( #901 )
2024-10-07 18:12:40 +02:00
Ian Douglas Scott
a96394f7a6
Update egui, smithay-egui, smithay
2024-10-02 23:55:10 +02:00
Christian Meissl
afdb656778
dnd: correct handling of cursor buffer offset
2024-09-23 11:13:21 +02:00
Ian Douglas Scott
d7ca0324c5
Remove needs_key_repetition argument
...
Not supressing key repetition in backends seems like it was a bug, and
should be fixed as of https://github.com/Smithay/smithay/pull/1535 .
So an argument for this should be unnecessary now.
2024-09-19 16:23:25 +02:00
may
0ffe6ae718
wayland: Implement cursor-shape-v1
2024-09-09 16:21:27 +02:00
skewballfox
7da0bc430a
added cursor_follows_focus and focus_follows_cursor
2024-09-04 20:22:40 +02:00
julianbraha
52280e9823
Remove unnecessary casting
2024-09-03 16:08:17 +02:00
Victoria Brekenfeld
07f898590a
kms: Fix rare mirroring crash
2024-09-02 20:44:23 +02:00
julianbraha
52ad30c264
Remove unnecessary lifetimes
2024-08-30 17:53:56 +02:00