No description
Find a file
Ian Douglas Scott d9a1ec04bd Set clipboard/primary focus in refresh_focus
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.)
2024-06-04 13:24:25 +02:00
.github/workflows nix: fix builds and CI 2023-07-05 02:14:07 +08:00
cosmic-comp-config feat: configurable keyboard repeat rate and delay 2024-05-23 22:41:54 +02:00
data main: Add (optional) systemd notify 2022-04-28 13:41:37 +02:00
debian Enable smithay/renderer_pixman feature 2024-04-17 12:01:25 +02:00
resources i18n(zh_TW): add Taiwanese translation 2024-05-29 06:27:35 -06:00
src Set clipboard/primary focus in refresh_focus 2024-06-04 13:24:25 +02:00
.gitignore Rework source filtering. 2023-01-04 01:52:16 -08:00
build.rs deps: Update to wayland-rs.0.30 2022-07-04 16:01:06 +02:00
Cargo.lock Set clipboard/primary focus in refresh_focus 2024-06-04 13:24:25 +02:00
Cargo.toml Set clipboard/primary focus in refresh_focus 2024-06-04 13:24:25 +02:00
config.ron feat: add shortcut for super-tab 2024-05-28 06:58:38 -06:00
flake.lock nix: setup dev shell 2023-11-12 17:30:41 +04:00
flake.nix nix: setup dev shell 2023-11-12 17:30:41 +04:00
i18n.toml i18n support 2023-07-06 00:04:34 +02:00
LICENSE Initial commit 2021-12-15 17:25:15 +01:00
Makefile chore: use --offline with vendored builds 2023-05-25 22:28:51 +02:00
rust-toolchain.toml chore: Update smithay 2024-02-19 13:09:49 +01:00
rustfmt.toml Fix refresh_focus 2023-04-01 20:35:58 +04:00