Commit graph

196 commits

Author SHA1 Message Date
Ian Douglas Scott
96cca005b7 Rename inaccurately named widget 2024-04-25 14:17:43 -07:00
Ian Douglas Scott
8f571e9e25 Use custom style for workspace items
None of the default styles seem to work quite right here.
2024-04-25 14:10:09 -07:00
Ian Douglas Scott
7997d58ce7 Fix clippy lints 2024-04-24 13:51:20 -07:00
Ian Douglas Scott
3dd5a28e28 backend/mock: fill buffer more efficiently 2024-04-24 13:04:23 -07:00
Ian Douglas Scott
ee1d54a12b Format imports 2024-04-24 13:00:40 -07:00
Ian Douglas Scott
76daf6e980 Update libcosmic/iced for drag-and-drop fixes 2024-04-24 12:46:57 -07:00
Ian Douglas Scott
ef12588615 mock: Use Format::Argb8888
Allows running on KDE, to compare how another compositor implementation.
2024-04-23 17:25:15 -07:00
Ian Douglas Scott
a6548057b6 Don't hide toplevel until drag is started
Seems to fix behavior on Sway, but on Smithay still destroys the drag
grab once the surface that started it is gone.
2024-04-23 17:23:57 -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
170e102275 Use Cmd instead of sending more wayland objects to frontend
This isn't needed now that the workspaces view is persistent (before, it
was necessary to make sure activation requests are flushed before
closing).

This is easier to spoof, for testing.
2024-04-23 11:54:05 -07:00
Ian Douglas Scott
8365efb30d Fix VisibilityWrapper widget
I believe this fixes how the widget works, though it's hard to tell
since the behavior was inconsistent.

There are still issues related to drag-and-drop in cosmic-comp or
`iced_sctk`, which need to be fixed to get things working fully.
2024-04-22 10:16:41 -07:00
Ian Douglas Scott
6f45933971 Fix various warnings 2024-04-19 15:44:55 -07:00
Ian Douglas Scott
09e03cd096 Hide toplevel from toplevel list when it is being dragged
Uses a custom wrapper widget, that makes `draw` do nothing when visible
is set to false.

This works well sometimes, but can cause weird bugs...
2024-04-19 15:28:16 -07:00
Ian Douglas Scott
b011ecd615 Use single-threaded async executor 2024-04-19 10:54:42 -07:00
Ian Douglas Scott
3a60ba9565 Update gbm and run cargo update 2024-04-19 09:30:45 -07:00
Ian Douglas Scott
888b1c542d Don't use dGPU for rendering on dual-graphics systems
Apparently the `antialiasing` flag determines this.
2024-04-09 15:35:09 -07:00
Ian Douglas Scott
e928053697 Run cargo update 2024-04-03 09:17:00 -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
a2493fc90e Fix creation of shm buffers 2024-04-01 14:09:15 -07:00
Ian Douglas Scott
62c9f986ba screencopy: Include error in error log 2024-03-28 15:15:32 -07:00
Ian Douglas Scott
7c8fddc568
Merge pull request #21 from pop-os/cosmic-screencopy-v2
cosmic-screencopy-v2
2024-03-25 12:03:35 -07:00
Ian Douglas Scott
094c28e105 cosmic-screencopy-v2 2024-03-25 10:24:47 -07:00
Ian Douglas Scott
b554dc3177 Fix / work around issue with drag surface not being destroyed 2024-03-06 16:09:58 -08:00
Ian Douglas Scott
5e290acbee Use log instead of println! 2024-03-06 14:05:32 -08:00
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