Commit graph

160 commits

Author SHA1 Message Date
Ryan Brue
16cce7c97a chore: cargo update 2024-05-30 23:05:34 +02:00
Ian Douglas Scott
4b9cc43924 Update Smithay with Nvidia IN_FENCE_FD fix
The only thing added to Smithay since the last update is
https://github.com/Smithay/smithay/pull/1437.

Fixes https://github.com/pop-os/cosmic-comp/issues/497.
2024-05-24 23:25:55 +02:00
Ian Douglas Scott
4f076e0753 Update smithay, with xwayland shell, Cow, etc. 2024-05-21 19:31:50 +02:00
Ian Douglas Scott
dfb3bea595 Disable Smithay use_system_lib to use Rust backend to wayland-rs
It seems this was needed for `renderer.bind_wl_display`. But only in the
X11 and winit backends. Unless there's some less obvious reason to use
the `use_system_lib` feature, it seems undesirable and avoidable.

This uses `WlDrmState` to provide `wl_drm` on those backends instead.
2024-05-15 13:12:24 +02:00
Ian Douglas Scott
73b12194c0 Update smithay 2024-05-10 13:51:28 +02:00
Ian Douglas Scott
5e61ce1ff8 Enable smithay/renderer_pixman feature
This enables support for using Pixman for cursor planes.
2024-04-17 12:01:25 +02:00
Ian Douglas Scott
17ddc7ce24 Update smithay
Updates for changes in https://github.com/Smithay/smithay/pull/1391.
2024-04-17 11:59:13 +02:00
Ian Douglas Scott
1216cd0b67 Add unset method to input grab traits
Fixes https://github.com/pop-os/cosmic-comp/issues/403.
2024-04-15 18:53:09 +02:00
Ian Douglas Scott
de544e1d31 Update smithay to latest commit 2024-04-09 11:26:36 +02:00
Victoria Brekenfeld
6ba7242cfc main: Increase soft file limit 2024-04-05 13:49:36 +02:00
Victoria Brekenfeld
e287af1f84 chore: Update smithay 2024-04-02 16:07:41 +02:00
Victoria Brekenfeld
cf75bc1952 chore: Update smithay/libcosmic 2024-03-26 18:50:56 +01:00
Ian Douglas Scott
f53e5a971d Optimize tiny-skia, rustybuzz, tty-parser in dev builds
Cosmic-comp seems to spend a lot of CPU time here, particularly in debug
builds. The Iced tiny-skia render probably could use some optimization,
but it's expected that software rendering without optimization will
perform quite poorly.

Optimizing just these crates doesn't seem to add measurably to build
time but does help noticeably.
2024-03-22 21:54:45 +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
e83796680f chore: Update smithay 2024-02-24 06:22:39 +01:00
Ian Douglas Scott
3036448c19 Update Smithay, with Window that supports X11 surfaces 2024-02-22 17:49:46 +01:00
Victoria Brekenfeld
83ec68d383 chore: Update smithay 2024-02-19 13:09:49 +01:00
Victoria Brekenfeld
54f2d2c67e chore: Update smithay 2024-02-06 15:31:01 +01:00
Ian Douglas Scott
e569e14a99 Update to latest libcosmic/iced 2024-01-18 20:27:51 +01:00
Victoria Brekenfeld
44bf1c316f chore: Update smithay 2024-01-16 17:30:46 +00:00
Ian Douglas Scott
b2b718dbea Update smithay 2024-01-08 12:43:41 +01:00
Ian Douglas Scott
ad3a917151 Update Smithay 2023-12-22 01:28:11 +01:00
Ian Douglas Scott
f70d33d3cb Update Smithay; high-res scroll 2023-12-12 22:09:56 +01:00
Victoria Brekenfeld
8c4d77e43c shell: Add window menu 2023-12-12 18:39:41 +01:00
Ian Douglas Scott
41a69cfc9f Update Smithay
For the `drm` protocol, we can't construct an `ImportNotifier`, since
that is specifically based around `ZwpLinuxBufferParamsv1`. So we need a
new method for importing with that protocol.

This could be improved, but should match current behavior.
2023-11-23 12:43:28 +01:00
Victoria Brekenfeld
f7cc1985e3 xdg-activation: Initial implementation 2023-11-09 13:48:34 +01:00
Victoria Brekenfeld
afffcce548 deps: chore update smithay 2023-11-06 18:35:14 +01:00
Victoria Brekenfeld
4f076f73d9 xwm: Fix stacking order 2023-10-25 19:41:55 +02:00
Ian Douglas Scott
b114865916 Update smithay 2023-10-25 19:41:55 +02: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
4e160dc669 chore: cleanup libcosmic branch 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
Ian Douglas Scott
111eb4edf4 Update smithay, with cursor/selection changes
We'll probably want to add support for `cursor-shape-v1`. Not sure about
`wlr-data-control-unstable-v1`. But this just updates to work with the
latest smithay commit for new.
2023-10-10 13:32:41 -07:00
Victoria Brekenfeld
6a92030341 deps: More calloop patches 2023-10-06 17:42:42 +02:00
Victoria Brekenfeld
e1e5dd994a deps: Update calloop 2023-10-05 21:56:55 +02:00
Victoria Brekenfeld
184d7662d4 deps: Use patched calloop for now 2023-10-04 18:28:15 +02:00
Ian Douglas Scott
98755c1695 Update smithay-egui, egui, puffin 2023-10-03 18:48:31 -07:00
Ian Douglas Scott
974aef7476 Update dependencies
Updating `renderdoc` fixes a segfault running with the `debug` feature.
2023-10-03 13:28:32 -07:00
Victoria Brekenfeld
2a0b1cf7e9 chore: Update libcosmic 2023-10-02 21:51:51 +02:00
Victoria Brekenfeld
4e12957169 chore: Update deps 2023-10-02 21:51:49 +02:00
Ian Douglas Scott
373af07319 Implement pointer constraints; update to send frame manually 2023-09-29 19:21:13 +02:00
Victoria Brekenfeld
db3e372b8f chore: Update smithay/smithay-egui 2023-09-21 18:21:20 +02:00
Ian Douglas Scott
e1fc182c3e Update Smithay 2023-09-13 20:24:11 -07:00
Ian Douglas Scott
6247918cad Send relative_pointer in frame with pointer; update Smithay
The protocol doesn't specify this, but XWayland does assume relative
pointer events are part of a frame.

This works for now, though a better solution will be needed in Smithay
to also handle pointer constraints where a relative motion may occur
alone, etc.

This seems to fix https://github.com/pop-os/cosmic-comp/issues/159.
2023-09-08 11:10:53 -07:00
Ian Douglas Scott
e7e9b768c8 Update Smithay, adjusting for API changes
The main changes are those related to pointer gestures. Which are a bit
verbose but not too difficult.
2023-09-05 13:46:48 -07:00
Ian Douglas Scott
56467755a8 cosmic-comp-config crate, and default input config
This adds a `input-default` setting, which is used for input settings if a
device isn't set in `input-devices`. More awkwardly, it also adds an
`input-touchpad` setting, which is used instead of `input-default` for
touchpad devices, so we can separate mouse and touchpad settings even
though they use the same capability and settings.

This no longer sets the input config, and only reads it. If we add a UI
for per-device config, we'll need some IPC mechanism to list connected
devices. (Assuming cosmic-settings can't use libinput directly for that.)

This moves `InputConfig` and `XkbConfig` to a new `cosmic-comp-config`
crate, so they can be used in `cosmic-settings`.
2023-08-31 13:59:49 -07:00
Ian Douglas Scott
0f5d654535 Use cosmic-config for input configuration; allow dynamic changes 2023-08-31 13:59:49 -07:00
Ian Douglas Scott
c3dddb9917 XWayland keyboard grab protocol 2023-08-09 14:21:06 -07:00