Commit graph

405 commits

Author SHA1 Message Date
Ian Douglas Scott
94ec10686e backend/wayland: Support running without toplevel manager protocol 2025-04-21 14:21:57 -07:00
Ian Douglas Scott
77ff4e62e9 Pass toplevel_capabilities from backend to frontend 2025-04-21 14:02:36 -07:00
Ian Douglas Scott
fc784af1b9 Fix building with mock-backend 2025-04-21 13:49:49 -07:00
Ian Douglas Scott
7037cd3d05 Activate workspace only if capability is present
Potentially relevant on compositors not advertising this, or if a
compositor wanted to advertise `Activate` support for some but not all
workspaces. This will be more relevant with other capabilities.
2025-04-21 13:20:42 -07:00
Ian Douglas Scott
655621fde0 Fix clippy lints 2025-04-21 11:32:07 -07:00
Ian Douglas Scott
62fbd056bf Store cctk::workspace::Workspace in struct Workspace
Instead of adding more fields to this struct that need to be copied from
the cctk type, just wrap it. Can add methods where that's convenient.
2025-04-21 10:36:44 -07:00
Ian Douglas Scott
bcb68ab054 widget/toplevel_item: Rename to size_cross_nth; take index argument
Name is a bit awkward, but useful for other purposes.
2025-04-17 13:45:55 -07:00
Ian Douglas Scott
4637fcb655 widget/toplevel_item: Fix tree passed to layout() of second child 2025-04-17 13:22:34 -07:00
Vukašin Vojinović
588e889e0b chore(view): remove bg_element
This removes the unused `bg_element` function.
2025-04-16 18:25:04 -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
d4ddae7799 Fix "never read" lint 2025-04-15 14:17:23 -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
7ab1f93acf Add and use TwoRowColToplevelLayout
This tries to find a split point in the list of toplevels to maximize
the scale factor when calling `RowColToplevelLayout` twice. If it
doesn't get a better scale factor, it just uses a single row/column.

Some things don't seem quite right, but the existing layout is not
perfect, and this can help.

Without the added cross axis spacing, there's overlap, so there may be
something wrong with the requested sizes...
2025-04-08 16:25:16 -07:00
Ian Douglas Scott
1fd7a86ecc row_col_toplevel_layout: Add a new method 2025-04-08 16:25:16 -07:00
Ian Douglas Scott
5349f0f3d0 row_col_toplevel_layout: Take into account max cross axis in scale factor
Previous definition assumed the cross axis of a single window would not
need more downscaling than the total main axis of all children. But that
doesn't always work out.
2025-04-08 16:25:16 -07:00
David Carvalho
b3fb34e8c5
i18n - update portuguese translations (#154) 2025-04-08 15:57:23 -06:00
Feike Donia
076bb981a6
i18n(nl) update and improve Dutch translation (#131) 2025-04-08 08:05:22 -06:00
VandaLHJ
643f6b8fdf
Update cosmic_workspaces.ftl PL translation (#132)
Added workspace $number or something
2025-04-08 08:04:55 -06:00
Weeesly
5b3f9afb80
Create cosmic_workspaces.ftl (#69) 2025-04-08 08:04:21 -06:00
Yevhen Popok
3650d7c6a9
Add Ukrainian translation (#74) 2025-04-08 08:03:45 -06:00
João Ribeiro
609a410cb6
i18n(pt): create Portuguese translation (#91) 2025-04-08 08:02:52 -06:00
kkCoder111
1d40870e0e
Add Tamil translation (#102) 2025-04-08 08:02:27 -06:00
x9a
7e14e36899
i18n(ar): add Arabic translation (#103) 2025-04-08 08:02:10 -06:00
therealmate
d567c22df3
Add Hungarian translations (#124)
Co-authored-by: Jeremy Soller <jackpot51@gmail.com>
2025-04-08 08:01:52 -06:00
dannilundgren
c32c858a1a i18n(dk) Add danish translation 2025-04-08 08:00:54 -06:00
Aindriú Mac Giolla Eoin
add143b331 Added Irish translation 2025-04-08 07:59:43 -06:00
Benjamin Weis
ab30e3578e i18n(de): add German translation 2025-04-08 07:59:26 -06:00
铺盖崽
201e340dbf i18n(zh-CN): create zh-CN translation 2025-04-08 07:59:12 -06:00
David Carvalho
037728e3ad i18n (pt-BR) Update translations 2025-04-08 07:58:58 -06:00
David Carvalho
503640db2f i18n (pt-BR) Update translations 2025-04-08 07:58:58 -06:00
neko0xff
f5a8b00732 i18n(zh-TW): add zh-TW translation 2025-04-08 07:58:34 -06:00
Matei Pralea
ded20a94a4 i18n(ro): Add Romanian translation 2025-04-08 07:57:39 -06:00
Ian Douglas Scott
ca23d3ad67 Use Layer::Top instead of Layer::Overlay
https://github.com/pop-os/cosmic-workspaces-epoch/issues/66. If we want
to hide the workspaces overlay when a popup is opened, that still needs
to be done, but using the same layer as the panel should be good in
general. There's no clear reason to have it on the `Overlay` layer.
2025-04-07 12:32:36 -07:00
Ian Douglas Scott
26b773c643 Use match instead of a couple if let branches 2025-04-07 08:20:51 -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
f2a2904978 Filter WaylandEvent::RequestResize events out of subscriptions
There seems to be a flood of this event. Probably shouldn't be? In any
case, we don't use this event so we don't need to call `.update()` with
it.
2025-03-21 12:57:28 -07:00
Ian Douglas Scott
6f93a10560 Make dnd_destination code more generic 2025-03-18 13:30:37 -07:00
Ian Douglas Scott
a9dcdce525 chore: update libcosmic 2025-03-14 13:42:42 -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
Ashley Wulber
7f877f72a3 fix: invert scroll direction 2025-02-20 18:52:53 -05:00
mkljczk
b9fcff56c9 Polish translation for .desktop entry
Signed-off-by: mkljczk <git@mkljczk.pl>
2025-02-19 15:34:01 -07:00
Ian Douglas Scott
4acd62abb0 Update for toplevel-info cctk changes 2025-02-13 11:46:45 -08:00
Ian Douglas Scott
e283cfe456 Fix build with mock-backend feature 2025-02-10 14:05:31 -08:00
Ian Douglas Scott
52bbc6c083 Fix warnings and remove dbg! 2025-02-10 12:04:20 -08:00
Ian Douglas Scott
ca5db9cc8e UI code for supporting workspace drags
Not used yet.
2025-02-10 12:02:36 -08:00
Ian Douglas Scott
9b12e76765 Rename DndWorkspaceDrag to DndToplevelDrag 2025-02-10 10:11:04 -08:00
Ian Douglas Scott
b5d2eed726 toplevel_layout: Add AxisToplevelLayout helper 2025-02-06 15:09:57 -08:00
Ian Douglas Scott
1342e37ad6 toplevel_layout: Make size depend on axis 2025-02-06 13:45:34 -08:00
Ian Douglas Scott
eb69aba7b2 toplevel_layout: Move logic into a requested_main_total method 2025-02-06 13:40:45 -08:00
Ian Douglas Scott
136d02ce28 Fix disabled scroll accumulation 2025-02-06 13:37:53 -08:00