feat(displays): listen to display change events with cosmic-randr

This commit is contained in:
Michael Aaron Murphy 2024-05-08 17:06:00 +02:00 committed by Michael Murphy
parent e756291b09
commit 554824aedf
4 changed files with 187 additions and 40 deletions

115
Cargo.lock generated
View file

@ -300,6 +300,15 @@ dependencies = [
"pin-project-lite",
]
[[package]]
name = "async-event"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4172595da7ffb68640606be5723e35a353555f2829e9209437627a003725bbdb"
dependencies = [
"loom",
]
[[package]]
name = "async-executor"
version = "1.11.0"
@ -1199,7 +1208,7 @@ name = "cosmic-client-toolkit"
version = "0.1.0"
source = "git+https://github.com/pop-os/cosmic-protocols?rev=e4e6f8c#e4e6f8ca4d7c239c02a8cdfd48a74cb0969425eb"
dependencies = [
"cosmic-protocols",
"cosmic-protocols 0.1.0 (git+https://github.com/pop-os/cosmic-protocols?rev=e4e6f8c)",
"libc",
"smithay-client-toolkit",
"wayland-client",
@ -1273,10 +1282,40 @@ dependencies = [
"wayland-server",
]
[[package]]
name = "cosmic-protocols"
version = "0.1.0"
source = "git+https://github.com/pop-os/cosmic-protocols.git#1316f9e1148ec65351471d8a046ffc82171b066e"
dependencies = [
"bitflags 2.5.0",
"wayland-backend",
"wayland-client",
"wayland-protocols",
"wayland-protocols-wlr",
"wayland-scanner",
"wayland-server",
]
[[package]]
name = "cosmic-randr"
version = "0.1.0"
source = "git+https://github.com/pop-os/cosmic-randr#8ad117e7c57848f113fbc87986e91209f2262b5a"
dependencies = [
"cosmic-protocols 0.1.0 (git+https://github.com/pop-os/cosmic-protocols.git)",
"futures-lite 2.3.0",
"indexmap",
"tachyonix",
"thiserror",
"tokio",
"tracing",
"wayland-client",
"wayland-protocols-wlr",
]
[[package]]
name = "cosmic-randr-shell"
version = "0.1.0"
source = "git+https://github.com/pop-os/cosmic-randr#12fa7ce503c832cb9565b59ff722b15b7bab3f31"
source = "git+https://github.com/pop-os/cosmic-randr#8ad117e7c57848f113fbc87986e91209f2262b5a"
dependencies = [
"kdl",
"slotmap",
@ -1297,6 +1336,7 @@ dependencies = [
"cosmic-bg-config",
"cosmic-comp-config",
"cosmic-panel-config",
"cosmic-randr",
"cosmic-randr-shell",
"cosmic-settings-page",
"cosmic-settings-system",
@ -1326,6 +1366,7 @@ dependencies = [
"slotmap",
"static_init",
"sunrise",
"tachyonix",
"tokio",
"tracing",
"tracing-subscriber",
@ -1622,6 +1663,16 @@ dependencies = [
"syn 2.0.61",
]
[[package]]
name = "diatomic-waker"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "28025fb55a9d815acf7b0877555f437254f373036eec6ed265116c7a5c0825e9"
dependencies = [
"loom",
"waker-fn",
]
[[package]]
name = "digest"
version = "0.10.7"
@ -3571,6 +3622,19 @@ version = "0.4.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "90ed8c1e510134f979dbc4f070f87d4313098b704861a105fe34231c70a3901c"
[[package]]
name = "loom"
version = "0.5.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ff50ecb28bb86013e935fb6683ab1f6d3a20016f123c76fd4c27470076ac30f5"
dependencies = [
"cfg-if",
"generator",
"scoped-tls",
"tracing",
"tracing-subscriber",
]
[[package]]
name = "loop9"
version = "0.1.5"
@ -3650,6 +3714,15 @@ dependencies = [
"libc",
]
[[package]]
name = "matchers"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8263075bb86c5a1b1427b5ae862e8889656f126e9f77c484496e8b47cf5c5558"
dependencies = [
"regex-automata 0.1.10",
]
[[package]]
name = "maybe-rayon"
version = "0.1.1"
@ -4637,8 +4710,17 @@ checksum = "c117dbdfde9c8308975b6a18d71f3f385c89461f7b3fb054288ecf2a2058ba4c"
dependencies = [
"aho-corasick",
"memchr",
"regex-automata",
"regex-syntax",
"regex-automata 0.4.6",
"regex-syntax 0.8.3",
]
[[package]]
name = "regex-automata"
version = "0.1.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6c230d73fb8d8c1b9c0b3135c5142a8acee3a0558fb8db5cf1cb65f8d7862132"
dependencies = [
"regex-syntax 0.6.29",
]
[[package]]
@ -4649,9 +4731,15 @@ checksum = "86b83b8b9847f9bf95ef68afb0b8e6cdb80f498442f5179a29fad448fcc1eaea"
dependencies = [
"aho-corasick",
"memchr",
"regex-syntax",
"regex-syntax 0.8.3",
]
[[package]]
name = "regex-syntax"
version = "0.6.29"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f162c6dd7b008981e4d40210aca20b4bd0f9b60ca9271061b07f78537722f2e1"
[[package]]
name = "regex-syntax"
version = "0.8.3"
@ -5397,6 +5485,19 @@ dependencies = [
"version-compare",
]
[[package]]
name = "tachyonix"
version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "64e0bf82be3359dbefbfea621d6365db00e1d7846561daad2ea74cc4cb4c9604"
dependencies = [
"async-event",
"crossbeam-utils",
"diatomic-waker",
"futures-core",
"loom",
]
[[package]]
name = "taffy"
version = "0.3.11"
@ -5723,10 +5824,14 @@ version = "0.3.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ad0f048c97dbd9faa9b7df56362b8ebcaa52adb06b498c050d2f4e32f90a7a8b"
dependencies = [
"matchers",
"nu-ansi-term",
"once_cell",
"regex",
"sharded-slab",
"smallvec",
"thread_local",
"tracing",
"tracing-core",
"tracing-log",
]