Commit graph

171 commits

Author SHA1 Message Date
Ian Douglas Scott
f9cf9568d2 Update dependencies 2024-03-05 12:38:52 -08:00
Ian Douglas Scott
7106001179 Address various warnings 2024-03-05 12:25:20 -08:00
Ian Douglas Scott
ea0de44e42 Remove workspace close button for now 2024-03-05 12:07:38 -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
a9ab17740d
Merge pull request #7 from pop-os/dmabuf-subsurfaces_jammy
Screencopy to dmabuf presented using subsurfaces
2024-03-01 14:36:58 -08:00
Ian Douglas Scott
78b7bfe957 Use Wayland subsurfaces, dmabuf screencopy
More efficient than shm screencopy, and rendering an iced image into the
window. Done right, should espeically help with multiple GPUs, but more
testing and work is needed there.

Removes mmapping of dmabuf, which errored... I guess not allocated with
right options for that. Relevant only if we want a fallback/test that
involves reading dmabufs.

Using `OnDamage` doesn't seem to work correctly currently. Likely a
compositor issue.
2024-03-01 14:35:19 -08:00
Ian Douglas Scott
1bfcd50383 Update calloop, libcosmic, etc. 2024-03-01 13:07:37 -08:00
Ian Douglas Scott
0dd3abf62c widgets/image_bg: Use layer in rendering
Fixes behavior with wgpu. It seemed to work with software renderer.
2024-02-29 15:51:55 -08:00
Ashley Wulber
361eac3554 chore: add icon 2024-02-28 14:19:17 -05:00
Ashley Wulber
8290763cbc fix(desktop): remove extension from icon 2024-02-28 14:19:17 -05:00
Ian Douglas Scott
7e81c9c4c6
Merge pull request #16 from moi-cest-matthew/master
Translation into 5 languages (Japanese, French, Spanish, Italian, Dutch)
2024-02-16 09:53:33 -08:00
Ian Douglas Scott
fb7840d295 Let gbm choose preferred modifier 2024-02-12 15:13:28 -08:00
Ian Douglas Scott
49ca11ab0c Run cargo update 2024-02-09 11:17:13 -08:00
Ian Douglas Scott
66fcf19ccc Run cargo update, and remove use of WorkspaceAmount
`WorkspaceAmount` has been removed from cosmic-comp for now.
2024-02-07 19:52:33 -08:00
Matthew Fallah (マシュー・ファラー)
642733a983
Create cosmic_workspaces.ftl for Dutch 2024-02-07 14:28:47 -10:00
Matthew Fallah (マシュー・ファラー)
06be6a4d23
Create cosmic_workspaces.ftl for Italian 2024-02-07 14:22:04 -10:00
Matthew Fallah (マシュー・ファラー)
0467bdd26a
Create cosmic_workspaces.ftl for Spanish 2024-02-07 13:20:27 -10:00
Matthew Fallah (マシュー・ファラー)
d47a42366f
Create cosmic_workspaces.ftl for French 2024-02-07 13:18:42 -10:00
Matthew Fallah (マシュー・ファラー)
fa970b7770
Create cosmic_workspaces.ftl for Japanese 2024-02-07 13:16:34 -10:00
Ian Douglas Scott
59717b80ea
Merge pull request #15 from pop-os/update-libcosmic
Update libcosmic
2024-02-07 10:36:52 -08:00
Ian Douglas Scott
015f61922b Update libcosmic 2024-02-06 13:32:29 -08:00
Ian Douglas Scott
6e9119a988 Seperate node from BufferBacking
Should help for moving from `BufferBacking` to types provide by
iced-sctk.
2024-01-26 14:37:18 -08:00
Ian Douglas Scott
a90a3a16b2 Simplify buffer creation code 2024-01-26 14:30:23 -08:00
Ian Douglas Scott
d869a29be7 Have .mmap member for Buffer for both shm and dmabuf 2024-01-26 14:23:04 -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
d50c1f13f6 Fix subtract overflow 2024-01-26 13:04:58 -08:00
Ian Douglas Scott
2b3773c88e Handle gbm::Modifier::Invalid 2024-01-25 18:35:25 -08:00
Ian Douglas Scott
01a64b11fa Add scheduler for async in wayland thread 2024-01-25 17:06:28 -08:00
Ian Douglas Scott
7ae2dc9e06 Fix reference to back buffer 2024-01-25 16:21:21 -08:00
Ian Douglas Scott
9faaa4d6c8 Use array instead of tuple for screencopy swapchain
Can switch to triple buffering by changing one character.
2024-01-25 16:16:26 -08:00
Ian Douglas Scott
6e422b740c Call attach_buffer_and_commit before reading front buffer
This way double buffering is somewhat useful; we can start another
capture before reading out the buffer.
2024-01-25 16:00:37 -08:00
Ian Douglas Scott
89910b8e75 Use double-buffering for screencopy
Currently this is unnecesssary, but it's needed if we use subsurfaces
(or import) instead of immedaitely converting to an image.
2024-01-25 15:58:34 -08:00
Ian Douglas Scott
6262329635 Clean up some of the screencopy code 2024-01-25 15:48:40 -08:00
Ian Douglas Scott
13b565e013 Add a ScreencopySession type
Allows cleaning up some of the relationship between `screencopy.rs` and
`capture.rs`, and groups variables that go together and are set to `Some`/`None`
together.

Should help for adding double buffering.
2024-01-25 15:44:30 -08:00
Ian Douglas Scott
43e9ef390a Move attach_buffer_and_commit 2024-01-24 16:07:00 -08:00
Ian Douglas Scott
6f1b391b00 Destroy screencopy session when not capturing 2024-01-24 15:59:18 -08:00
Ian Douglas Scott
b958a13b88 Remove outdated comment 2024-01-24 15:30:41 -08:00
Ian Douglas Scott
14d2a66c9d Re-use screencopy session instead of creating one each frame 2024-01-24 15:29:03 -08:00
Ian Douglas Scott
5269356089 Use Weak<Capture> in session state 2024-01-24 13:59:18 -08:00
Ian Douglas Scott
82951822b9 If toplevels don't fit, scale by same factor 2024-01-22 17:19:46 -08:00
Ian Douglas Scott
b60102c908 Update dependencies 2024-01-22 14:56:31 -08:00
Ian Douglas Scott
7d0882162b Spacing fix 2024-01-22 13:40:10 -08:00
Ashley Wulber
68c91f2454 fix: update desktop file 2024-01-22 10:10:48 -05:00
Ian Douglas Scott
99aeca0f2f Custom Toplevels widget
Fixes centering on toplevels.

Need to use fewer hacks, and add equal scale factor.

See if Iced layout system can be improved.
2024-01-19 15:32:54 -08:00
Ian Douglas Scott
ec5dceeed2 Custom widget to avoid stretching toplevel items
Avoids close button aligned way to right. And fixes offset for drag
surface.

But left aligns workspaces (need new container?).
2024-01-19 14:42:06 -08:00
Ian Douglas Scott
9d2f2f68d0 Update dependencies 2024-01-19 03:35:33 -08:00
Ian Douglas Scott
6a9e47e160 Update dependencies 2024-01-17 17:58:39 -08:00
Ian Douglas Scott
bc0898fa0a Update dependencies 2024-01-03 10:57:47 -08:00
Ian Douglas Scott
907410fab9 Add cosmic-config settings, and subscribe 2023-12-29 13:44:19 -08:00
Ian Douglas Scott
8718c38a30 Update dependencies 2023-12-26 13:59:31 -08:00