Commit graph

25 commits

Author SHA1 Message Date
Vukašin Vojinović
7a2bad8f34 feat(app-list): close toplevel button 2025-12-30 08:34:00 +01:00
Vukašin Vojinović
8e57d5b165 chore: update dependencies 2025-10-08 12:30:43 -04:00
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
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
Ian Douglas Scott
4dc6f8b99f Use updated screencopy abstraction 2025-02-06 15:14:47 -08: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
Michael Aaron Murphy
8527257ddd chore: add SPDX license identifiers 2024-05-06 21:56:50 +02:00
Ashley Wulber
1760354654 fix: capture dimensions must be > 0 2024-04-29 11:35:34 -04: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
7aead1ce47 fix: don't take screencopy on every new toplevel 2024-04-03 20:12:45 -04:00
Ryan Brue
7592a3144f feat: Set focused window as selected 2024-04-02 23:25:12 +02: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
daniel.eades
e9af664888 flatten tautological enum names 2023-11-16 15:47:20 -05:00
Ashley Wulber
2141230229 refactor: connect to privileged socket if possible 2023-11-15 12:23:11 -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_handler.rs (Browse further)