This should fix https://github.com/pop-os/cosmic-comp/issues/494, and make clipboard and primary focus consistently correct. Changing the active element of a stack needs to change the clipboard focus, but it wasn't being changed since the `KeyboardFocusTarget` was unchanged. The `CosmicStack` methods that change the active stack element also have no obvious way to change the keyboard focus. So we can set this in `refresh_focus`, which should be correct. If the new focus `WlSurface` is `None`, this clears the focus instead of leaving it as the previous code did. I believe that is desirable. Requires https://github.com/Smithay/smithay/pull/1442 to avoid repeated `offer`s, instead of only when focus changed. (Perhaps this could better be solved by having a `WlSurface` variant of `KeyboardFocusTarget`, like pointer focus, or some mechanism for a stack of focus, which could help other things. But it's also unclear exactly how that would work with the code for setting the active stack element, among other questions.)
121 lines
3.2 KiB
TOML
121 lines
3.2 KiB
TOML
[package]
|
|
authors = ["Victoria Brekenfeld"]
|
|
edition = "2021"
|
|
license = "GPL-3.0-only"
|
|
name = "cosmic-comp"
|
|
version = "0.1.0"
|
|
|
|
[workspace]
|
|
members = [
|
|
"cosmic-comp-config",
|
|
]
|
|
|
|
[dependencies]
|
|
anyhow = {version = "1.0.51", features = ["backtrace"]}
|
|
bitflags = "2.4"
|
|
bytemuck = "1.12"
|
|
calloop = {version = "0.13.0", features = ["executor"]}
|
|
cosmic-comp-config = {path = "cosmic-comp-config"}
|
|
cosmic-config = {git = "https://github.com/pop-os/libcosmic/", features = ["calloop", "macro"]}
|
|
cosmic-protocols = {git = "https://github.com/pop-os/cosmic-protocols", branch = "main", default-features = false, features = ["server"]}
|
|
edid-rs = {version = "0.1"}
|
|
egui = {version = "0.23.0", optional = true}
|
|
egui_plot = {version = "0.23.0", optional = true}
|
|
glow = "0.12.0"
|
|
i18n-embed = {version = "0.14", features = ["fluent-system", "desktop-requester"]}
|
|
i18n-embed-fl = "0.7"
|
|
iced_tiny_skia = {git = "https://github.com/pop-os/libcosmic/"}
|
|
indexmap = "2.0"
|
|
keyframe = "1.1.1"
|
|
lazy_static = "1.4.0"
|
|
libc = "0.2.149"
|
|
libcosmic = {git = "https://github.com/pop-os/libcosmic/", default-features = false}
|
|
libsystemd = {version = "0.7", optional = true}
|
|
log-panics = {version = "2", features = ["with-backtrace"]}
|
|
once_cell = "1.18.0"
|
|
ordered-float = "4.0"
|
|
png = "0.17.5"
|
|
regex = "1"
|
|
renderdoc = {version = "0.11.0", optional = true}
|
|
ron = "0.8"
|
|
rust-embed = {version = "8.0", features = ["debug-embed"]}
|
|
sanitize-filename = "0.5.0"
|
|
sendfd = "0.4.1"
|
|
serde = {version = "1", features = ["derive"]}
|
|
serde_json = "1"
|
|
thiserror = "1.0.26"
|
|
time = {version = "0.3.30", features = ["macros", "formatting", "local-offset"]}
|
|
tiny-skia = "0.11"
|
|
tracing = {version = "0.1.37", features = ["max_level_debug", "release_max_level_info"]}
|
|
tracing-journald = "0.3.0"
|
|
tracing-subscriber = {version = "0.3.16", features = ["env-filter", "tracing-log"]}
|
|
wayland-backend = "0.3.3"
|
|
wayland-scanner = "0.31.1"
|
|
xcursor = "0.3.3"
|
|
xdg = "^2.1"
|
|
xdg-user = "0.2.1"
|
|
xkbcommon = "0.7"
|
|
zbus = "3.15.0"
|
|
profiling = { version = "1.0" }
|
|
rustix = { version = "0.38.32", features = ["process"] }
|
|
|
|
[dependencies.id_tree]
|
|
branch = "feature/copy_clone"
|
|
git = "https://github.com/Drakulix/id-tree.git"
|
|
|
|
[dependencies.smithay]
|
|
default-features = false
|
|
features = [
|
|
"backend_drm",
|
|
"backend_gbm",
|
|
"backend_egl",
|
|
"backend_libinput",
|
|
"backend_session_libseat",
|
|
"backend_udev",
|
|
"backend_winit",
|
|
"backend_vulkan",
|
|
"backend_x11",
|
|
"desktop",
|
|
"renderer_glow",
|
|
"renderer_multi",
|
|
"renderer_pixman",
|
|
"wayland_frontend",
|
|
"xwayland",
|
|
]
|
|
git = "https://github.com/smithay/smithay.git"
|
|
rev = "74ef59a3f"
|
|
version = "0.3"
|
|
|
|
[dependencies.smithay-egui]
|
|
features = ["svg"]
|
|
git = "https://github.com/Smithay/smithay-egui.git"
|
|
optional = true
|
|
rev = "cdc652e0"
|
|
|
|
[features]
|
|
debug = ["egui", "egui_plot", "smithay-egui", "renderdoc", "anyhow/backtrace"]
|
|
default = ["systemd"]
|
|
systemd = ["libsystemd"]
|
|
profile-with-tracy = ["profiling/profile-with-tracy"]
|
|
|
|
[profile.dev]
|
|
lto = "thin"
|
|
|
|
[profile.dev.package.tiny-skia]
|
|
opt-level = 2
|
|
|
|
[profile.dev.package.rustybuzz]
|
|
opt-level = 2
|
|
|
|
[profile.dev.package.ttf-parser]
|
|
opt-level = 2
|
|
|
|
[profile.fastdebug]
|
|
debug = true
|
|
inherits = "release"
|
|
|
|
[profile.release]
|
|
lto = "fat"
|
|
|
|
[patch."https://github.com/Smithay/smithay.git"]
|
|
smithay = {git = "https://github.com/smithay//smithay", rev = "96af9cb"}
|