Commit graph

22 commits

Author SHA1 Message Date
Cheong Lau
dd0158d8f0 perf: refactor to reduce memory allocations and cpu work 2025-10-07 17:04:51 +02:00
Cheong Lau
8e0f1c4a09
chore: apply recommendations from clippy 2025-10-04 02:51:18 +02:00
Vukašin Vojinović
2b7b4cba56 chore: update to Rust 2024 edition 2025-08-18 16:44:50 +02:00
Vukašin Vojinović
c3fafd3910 chore: use std::sync::LazyLock
Removes `once_cell` as a direct dependency.
2025-08-18 16:44:50 +02:00
Michael Aaron Murphy
5ac8605e7e
chore: update libcosmic 2025-06-11 17:16:11 +02:00
Ian Douglas Scott
7ba2ed0c53 Update to workspace v2, based on ext-workspace
In the workspace applet, this now uses `Workspace` in the front-end code
instead of a tuple with unnamed fields. Handling of scrolling is also
moved to the frontend, which uses less code and seems more natural. It
would be good to have a helper in libcosmic for this. It also changes
`ObjectId` to `ExtWorkspaceHandleV1`, which is a little simpler and I
see no reason here to avoid the more strongly typed object.

At some point we may want a shared subscription for workspaces in
multiple applets. As well as a higher-level abstraction for screen
capture.
2025-03-07 22:23:55 -08:00
Ian Douglas Scott
e9848a2d4f Update for toplevel-info cctk changes
Requires pop-os/cosmic-protocols#49.

The duplication between applets, and
cosmic-workspace/xdg-desktop-portal-cosmic, should be moved to shared
abstractions. But that can be done after moving to
`ext-image-copy-capture`.

`ToplevelInfo` now contains both ext and cosmic handles, so the tuples
of handles and info are needed. Use just the info.
2025-02-13 12:29:39 -08:00
Ashley Wulber
5b5cd77e7c update iced 2024-10-31 17:52:33 -04:00
Ian Douglas Scott
293a91e8b1 Update for spawn_desktop_exec that calls SpawnTransientUnit
Allows `xdg-desktop-portal` to get app id from PID.

Also updates calls to `cosmic::process::spawn` to spawn in future.
2024-07-28 20:25:23 -07:00
Vukašin Vojinović
f9607b3686 chore(app-list): merge imports 2024-07-08 16:18:12 +02:00
Ryan Brue
631e59276e fix: fixes when rebasing 2024-04-09 18:15:14 -04:00
Ryan Brue
27324f34e2 feat/fix: track output state in app-list 2024-04-09 18:15:14 -04:00
Ryan Brue
1e5af14bc4 fix: clippy lints 2024-04-03 20:12:45 -04:00
Ryan Brue
769af3d944 improv(app-list): only send screencopy requests as needed 2024-04-02 23:24:18 +02:00
Ryan Brue
0629b18e00 feat: app list click: two or more toplevel behavior 2024-04-01 19:09:17 -04:00
Ryan Brue
5b78a9f22e feat: app-list click: zero and single toplevel behavior 2024-04-01 19:09:17 -04:00
Victoria Brekenfeld
89986d8268 app-list: clippy fixes 2024-02-01 18:33:40 +01:00
Victoria Brekenfeld
dfd863c54f app_list: Offer gpu selection 2024-02-01 18:33:40 +01:00
Ashley Wulber
d4e0dd8fb8 fix: make all subscriptions resistant to being restarted
many of the errors we've been seeing the last few days are because of subscriptions which are restarting
2024-01-18 23:16:17 -05:00
daniel.eades
e9af664888 flatten tautological enum names 2023-11-16 15:47:20 -05:00
daniel.eades
94f9879a39 remove needless return statements 2023-11-16 15:47:20 -05:00
Victoria Brekenfeld
99da3eda4a app-list: Add xdg-activation 2023-11-08 10:55:31 -05:00
Renamed from cosmic-app-list/src/toplevel_subscription.rs (Browse further)