Commit graph

111 commits

Author SHA1 Message Date
Victoria Brekenfeld
0092dac08c input: Use render_input_order 2024-10-22 19:43:47 +02:00
Victoria Brekenfeld
51c8588f89 render: Use render_input_order 2024-10-22 19:43:47 +02:00
skewballfox
7da0bc430a added cursor_follows_focus and focus_follows_cursor 2024-09-04 20:22:40 +02:00
julianbraha
52ad30c264 Remove unnecessary lifetimes 2024-08-30 17:53:56 +02:00
Ian Douglas Scott
94fecec9cb Add a SplitRenderElements type, with useful methods
`(w_elements, p_elements)` tuples are used in a bunch of places. A
struct with named fields is generally an improvement just due to the
fact the order is non-obvious.

But we can also add methods. In particular,
`extend_from_workspace_elements` abstracts out some of the more
redundant code in `workspace_elements`.

It would be nice to avoid allocation everywhere, but iterators would
complicate lifetimes, run into issues with needing multiple mutable
borrows to things like the `Renderer`, and be awkward in certain
functions without generator syntax. In any case, cosmic-comp already
relies on allocating vectors here.

If this abstraction is commonly useful in compositors, perhaps it could
be moved to Smithay.
2024-07-15 17:12:05 +02:00
Victoria Brekenfeld
b9a323c9ff shell: Populate focus_stack when unstacking 2024-07-03 21:04:28 +02:00
Michael Aaron Murphy
553c49b42b feat: runtime configurable keybindings 2024-07-01 15:20:23 +02:00
Victoria Brekenfeld
5662a0f219 floating: Correctly place grabbed tiled windows 2024-06-28 12:24:09 +02:00
Victoria Brekenfeld
da9af7ad23 floating: Add proper recalculate function
Don't just check maximized windows on every refresh, remapping them and
causing flickering, but introduce a proper recalculate method to be
called on layer-shell events / set_output event.

Also if we need to remap, remap all windows to keep stacking order.
2024-06-27 13:35:48 +02:00
Victoria Brekenfeld
bd58481d19 element: Introduce CosmicMappedKey for safely hashing windows across threads 2024-06-26 12:59:33 +02:00
Victoria Brekenfeld
e78e199663 chore: Update smithay for thread-safety 2024-06-26 12:59:33 +02:00
Ian Douglas Scott
f2342f56c1 Update to latest Smithay version 2024-06-19 12:39:16 +02:00
Ashley Wulber
13e67f3dc2 fix: apply activated state when updating maximized layout 2024-05-30 22:25:33 +02:00
Ashley Wulber
a3df48fe17 fix: update maximized elements when refreshing the floating layout
fixes the gap between the window and the panel
2024-05-29 01:05:09 +02:00
Ian Douglas Scott
4f076e0753 Update smithay, with xwayland shell, Cow, etc. 2024-05-21 19:31:50 +02:00
Ian Douglas Scott
73b12194c0 Update smithay 2024-05-10 13:51:28 +02:00
Ryan Brue
90227471bf feat: floating window tiling gaps 2024-04-22 10:44:14 +02:00
Ian Douglas Scott
bddfba464c shell: Add touch support to ResizeSurfaceGrab
Seems to work well with GTK.
2024-04-15 11:37:03 +02:00
Victoria Brekenfeld
10940a723f floating: Don't drop stack on themselves 2024-03-28 17:25:09 +01:00
Victoria Brekenfeld
5449858e70 Fix #385 2024-03-27 17:48:50 +01:00
Victoria Brekenfeld
5459f52d5e input: Rework PointerFocus to operate directly on WlSurface 2024-03-26 18:50:56 +01:00
Ryan Brue
3837e56382 floating mouse tiling: add corner tiling, implement designs 2024-03-22 17:04:57 +01:00
Victoria Brekenfeld
d341cb8b86 debug: Drop puffin integration 2024-03-21 17:49:06 +01:00
Ian Douglas Scott
a1c8b3aa3e Add support for profiling using tracy 2024-03-20 23:55:21 +01:00
Ryan Brue
a4f3006313 feat: maximize/half tiling drag zones 2024-03-20 11:51:53 +01:00
Victoria Brekenfeld
153ed8d0a5 workspace: Re-maximize windows when changing tile mode 2024-03-07 12:22:39 +01:00
Victoria Brekenfeld
a8846ed2b8 floating: Make sure new windows don't overflow output size 2024-03-05 16:55:30 +01:00
Victoria Brekenfeld
4d118dda8b shell: Play with minimize duration again 2024-03-04 19:20:52 +01:00
Victoria Brekenfeld
61a3f5c4c8 shell: Even longer minimize duration 2024-03-04 19:20:52 +01:00
Victoria Brekenfeld
625218bbf6 shell: Delay alpha changes for minimize animations 2024-03-04 19:20:52 +01:00
Victoria Brekenfeld
4f55f4127b minimize: Slower animation 2024-03-04 19:20:52 +01:00
Victoria Brekenfeld
4e09fc0398 floating: Fix maximize animation again 2024-03-04 19:20:52 +01:00
Victoria Brekenfeld
3eb7e5f82e shell: implement minimize 2024-03-04 19:20:52 +01:00
Victoria Brekenfeld
849882a7db clippy fixes 2024-02-19 13:09:49 +01:00
Victoria Brekenfeld
61a3aa8d79 floating: Maximize animation 2024-01-29 01:48:40 +01:00
Victoria Brekenfeld
234a3c6bf9 floating: Fix broken size check 2024-01-15 11:02:56 +01:00
Victoria Brekenfeld
9ca5edc836 floating: Allow dragging windows into stacks 2024-01-15 11:02:56 +01:00
Victoria Brekenfeld
be192c80e5 floating: Fix next window logic 2024-01-03 14:17:29 +01:00
Victoria Brekenfeld
bbb9016113 floating: Fix crash resizing tiled windows 2024-01-02 13:24:07 +01:00
Victoria Brekenfeld
edfb0edda7 grabs: Add ReleaseMode for menu-initiated grabs 2023-12-12 18:39:41 +01:00
Victoria Brekenfeld
9ecfa8bfda floating: Fix initial size for previously maximized 2023-12-12 18:39:41 +01:00
Victoria Brekenfeld
f6c28466e9 floating: Add toggle_stacking_(focused) 2023-12-12 18:39:41 +01:00
Victoria Brekenfeld
ebd781b678 floating/resize: Fix local/global coordinate conversions 2023-11-23 12:57:42 +01:00
Victoria Brekenfeld
92c16bd4ad floating: Transition via maximized state 2023-11-16 19:21:02 +01:00
Victoria Brekenfeld
90bf3b5668 floating: New reference windows outside 2023-11-16 19:21:02 +01:00
Victoria Brekenfeld
cf5b21f437 floating: Animate tiling state changes 2023-11-16 19:21:02 +01:00
Victoria Brekenfeld
2d15fb9766 floating: Handle tiling shortcuts 2023-11-16 19:21:02 +01:00
Victoria Brekenfeld
d09abc4728 floating: New window spawn positions 2023-11-16 19:21:02 +01:00
Victoria Brekenfeld
f7cc1985e3 xdg-activation: Initial implementation 2023-11-09 13:48:34 +01:00
Victoria Brekenfeld
3901e637b0 floating: Don't render hint for maximized window 2023-10-25 19:41:55 +02:00