Commit graph

82 commits

Author SHA1 Message Date
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
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
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
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
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
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
7106001179 Address various warnings 2024-03-05 12:25:20 -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
Ian Douglas Scott
015f61922b Update libcosmic 2024-02-06 13:32:29 -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
9d2f2f68d0 Update dependencies 2024-01-19 03:35:33 -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
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
f189c2d49e Don't remove last workspace 2023-12-14 16:19:53 -08:00
Ian Douglas Scott
a3e3bec885 Custom widget for sidebar; closing workspace
Need custom widget currently to distribute space correctly.
2023-12-13 15:54:33 -08:00
Ian Douglas Scott
ea9298c021 Make "New Workspace" button add workspace 2023-12-12 15:36:20 -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
e020bf6607 Update libcosmic/iced 2023-12-08 20:14:31 -08:00
Ian Douglas Scott
5550f41814 dnd: Keep track of drop target
Now just need a protocol to move the toplevel to a workspace.
2023-12-06 11:02:21 -08:00
Ian Douglas Scott
f2c77d035c Drag toplevel to workspace; recognize what toplevel was dragged 2023-12-06 10:51:55 -08:00
Ian Douglas Scott
e5aca0a6b5 Allow dragging toplevel 2023-12-06 10:03:39 -08:00
Ian Douglas Scott
8722fe574a Fix drag and drop code
Still need to implement actual behavior.
2023-12-05 17:44:05 -08:00
Ian Douglas Scott
e85741ca5d Update iced/libcosmic 2023-12-05 09:48:59 -08:00
Ashley Wulber
f61cdc5759 fix: use default style so the workspaces view is not transparent 2023-11-21 19:26:12 -05: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
0c19ea7167 Add CaptureImage type 2023-11-16 19:38:42 -08:00
Ian Douglas Scott
f5045286a9 Move view functions to a module 2023-11-16 19:25:28 -08:00
Ian Douglas Scott
eb38e3c3ba Fix lints 2023-11-16 13:42:19 -08:00
Ian Douglas Scott
9598a9f8e4 Use WlOutput instead of output names for matching
With a shared wayland connection between the code here and iced, if we
don't bind outputs outselves, we can have `WlOutput`s that match.

This simplifies things.
2023-11-08 13:59:53 -08:00
Ian Douglas Scott
96cd334b81 Share wayland connection with iced-sctk instead of creating new one 2023-11-08 13:31:13 -08:00
Ian Douglas Scott
01b007ef83 Update dependencies 2023-11-03 13:06:43 -07:00
Ian Douglas Scott
bbd0a1c128 WIP drag and drop 2023-07-20 15:48:19 -07:00
Ian Douglas Scott
c98b48586f Update dependencies 2023-07-20 14:49:17 -07:00
Ian Douglas Scott
f8a3c4ba55 WIP drag-and-drop 2023-07-20 14:49:12 -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
8bc6e66de1 Update sctk, iced, etc. 2023-04-04 16:20:40 -07:00
Ian Douglas Scott
f686ede90f Don't cover panel 2023-03-27 10:37:30 -07:00
Ian Douglas Scott
1013a67413 Use exclusive_zone: -1 to not have panel impact position
Or need to make sure size is right, and it fills space other than panel?
2023-03-27 10:21:44 -07:00