Commit graph

49 commits

Author SHA1 Message Date
Ian Douglas Scott
5bb719f617 Use cosmic-freedesktop-icons, like libcosmic 2025-05-15 10:05:57 -07:00
Vukašin Vojinović
2b7a8b133e improv(view): make workspace item sizing more dynamic
This makes the `workspace_bar` more responsive to different child sizes, which enables fixing the size of the smaller dimension of the screencopy, while allowing it to expand unrestricted in the larger dimension (to match the aspect ratio).
2025-04-16 18:25:04 -07:00
Ian Douglas Scott
74270a2deb Use ThreadExecutor instead of calloop executor
I thought the calloop executor had been fixed, but it still seems to
have issues that were preventing capture of continuous frames from
working consistently.

Fixes https://github.com/pop-os/cosmic-workspaces-epoch/issues/160.
2025-04-15 12:34:37 -07:00
Ian Douglas Scott
874245bc2e Use aliasable in AxisToplevelLayout to use slice in argument
This makes layouts possible to compose without clones.
2025-03-24 14:59:25 -07:00
Ian Douglas Scott
6b6bf454db Update to workspace v2, based on ext-workspace
Requires https://github.com/pop-os/cosmic-protocols/pull/51,
https://github.com/pop-os/cosmic-comp/pull/1225.

The new protocol version is a hard requirement, and this will panic
without it.
2025-03-07 22:24:36 -08:00
Ian Douglas Scott
a428659ade Use std LazyLock instead of once_cell crate 2025-01-16 10:21:35 -08:00
Ian Douglas Scott
e1895ea3d7 Update dependencies 2025-01-13 10:42:44 -08:00
Ian Douglas Scott
b70828e23f Update iced/libcosmic 2025-01-13 10:26:45 -08:00
Ian Douglas Scott
5e6c6054a9 Run cargo update; with iced changes and new wayland-rs 2024-06-12 09:17:06 -07:00
Ian Douglas Scott
d759e1d7c2 Use cosmic_bg_config to get background
Scaling doesn't match `cosmic-bg`?
2024-04-30 12:49:08 -07:00
Ian Douglas Scott
c75a48535a Add a mock backend for testing (including on other compositors)
Should help determine which issues are cosmic-comp bugs.
2024-04-23 13:44:59 -07:00
Ian Douglas Scott
3a60ba9565 Update gbm and run cargo update 2024-04-19 09:30:45 -07:00
Ian Douglas Scott
bf2cd273f9 Add a no-subsurfaces feature for debugging 2024-04-01 15:13:51 -07:00
Ian Douglas Scott
1fc416bb2e Add force-shm-screencopy feature for debugging 2024-04-01 14:44:29 -07:00
Ian Douglas Scott
f9cf9568d2 Update dependencies 2024-03-05 12:38:52 -08:00
Ian Douglas Scott
ab4cfd5bc5 Enable iced wgpu backend, which seems to perform better
A good software renderer probably should perform fine where subsurfaces
are used like for the actual images. Perhaps more improvement is needed
in the renderer.
2024-03-01 14:42:53 -08:00
Ian Douglas Scott
1bfcd50383 Update calloop, libcosmic, etc. 2024-03-01 13:07:37 -08:00
Ian Douglas Scott
2164c1ea5a Create shm buffer directly instead of using RawPool
Currently needed if we want an fd to pass to iced-sctk for subsurfaces.
Rather than a wl_buffer.

It would be good if this logic and the dmabuf type could be shared in
some crate.
2024-01-26 14:13:58 -08:00
Ian Douglas Scott
01a64b11fa Add scheduler for async in wayland thread 2024-01-25 17:06:28 -08:00
Ian Douglas Scott
b60102c908 Update dependencies 2024-01-22 14:56:31 -08:00
Ian Douglas Scott
8718c38a30 Update dependencies 2023-12-26 13:59:31 -08:00
Ian Douglas Scott
b2f81b1a73 i18n 2023-12-26 13:54:29 -08:00
Ian Douglas Scott
68beafe911 Subscribe to changes in cosmic-comp configuration 2023-12-21 10:41:46 -08:00
Ian Douglas Scott
899dfb0a3d Show icons for toplevels 2023-12-18 19:41:30 -08:00
Ian Douglas Scott
c4adca76c0 Use delegate crate to simplify things a bit. 2023-12-15 13:33:29 -08:00
Ian Douglas Scott
df81bd4e4c Fix dependency 2023-12-13 12:41:06 -08:00
Ian Douglas Scott
89021e3b8b Fix drag and drop; send command to compositor if supported 2023-12-11 14:06:41 -08:00
Ian Douglas Scott
e5aca0a6b5 Allow dragging toplevel 2023-12-06 10:03:39 -08:00
Ashley Wulber
791441ca10 refactor: single instance 2023-11-21 19:26:12 -05:00
Ian Douglas Scott
fccc5f26e5 Initial support for horizontal workspaces 2023-11-17 14:56:37 -08:00
Ian Douglas Scott
7f1f46c9c7 Error handling when creating gbm buffers 2023-11-16 13:36:38 -08:00
Ian Douglas Scott
acc7c3d472 Update gbm and run cargo update 2023-11-16 12:01:06 -08:00
Ian Douglas Scott
f585cbc32f Inital support for allocating dmabufs 2023-11-08 15:51:12 -08:00
Ian Douglas Scott
6fc90b6f2c Open GBM main device
Not yet used.
2023-11-08 14:54:42 -08:00
Ian Douglas Scott
9a822bd76d Add dmabuf protocol handler
Not used yet.
2023-11-08 14:32:33 -08:00
Ian Douglas Scott
01b007ef83 Update dependencies 2023-11-03 13:06:43 -07:00
Ian Douglas Scott
2453276991 Update to libcosmic master 2023-05-31 15:59:03 -07:00
Ian Douglas Scott
078fc31713 Update libcosmic/iced for advanced text rebase 2023-05-12 13:25:19 -07:00
Ian Douglas Scott
60a4a2fa63 Initialize env_logger 2023-04-13 14:30:47 -07:00
Ian Douglas Scott
4e2ef433fd Handle global workspaces 2023-03-22 10:03:18 -07:00
Ian Douglas Scott
69a877894a Update dependencies 2023-03-16 14:08:20 -07:00
Ian Douglas Scott
5d85ec3ab5 Use optimization in dev builds to make it usable 2023-02-14 13:46:20 -08:00
Ian Douglas Scott
c46ab4f1e6 Recapture workspace/toplevel on damage; start code for filtering
For some reason using calloop makes output events not consistently
occur?
2023-02-09 14:00:22 -08:00
Ian Douglas Scott
cc87545b7d Use iced_sctk re-export 2023-01-26 15:47:23 -08:00
Ian Douglas Scott
747ffd8b23 Persist, and toggle with a dbus service
Seems to have some issues at present.
2023-01-19 16:29:20 -08:00
Ian Douglas Scott
039e0a9585 Update deps and add Cargo.lock 2023-01-17 12:36:05 -08:00
Ian Douglas Scott
65233e1a28 WIP way to activate workspace 2023-01-04 14:41:44 -08:00
Ian Douglas Scott
7afd6451d2 Remove some comments 2022-12-30 14:10:56 -08:00
Ian Douglas Scott
970885ec45 Initial commit 2022-12-30 14:07:39 -08:00