Victoria Brekenfeld
df9441804d
iced: Track last seat/serial for grabs
2025-02-20 23:51:55 +01:00
Daniel
2553810621
grabs: Snap Window Edges to Close Output Edges
2025-02-14 11:58:09 +01:00
Ian Douglas Scott
b685512127
Migrate away from Rectangle::from_loc_and_size
...
Deprecated in `smithay` by https://github.com/Smithay/smithay/pull/1621 .
2025-01-07 12:50:35 +01:00
Yureka
9b78a2d780
refactor(shell/element): refactor how decorations height is accessed
...
This fixes several things:
- The xwayland code previously incorrectly used the SSD_HEIGHT (for Windows) even when the X11 surface was in a stack
- The SSD_HEIGHT was defined in surface.rs, even though rendering serverside decorations is done in the window/stack
Rename (min|max)_size to (min|max)_size_without_ssd in CosmicSurface and make it act accordingly
Add a new (min|max)_size() in CosmicWindow and CosmicStack, which takes the surface's (min|max)_size and adds the decorations.
Change all callers to use (min|max)_size() from the window or stack respectively, except is_dialog() where it does not matter.
2024-12-28 15:32:03 +01:00
Vukašin Vojinović
7de52054ff
chore: update iced/libcosmic
2024-12-11 16:58:16 +01:00
Victoria Brekenfeld
fc84fa9948
shell: Fix windows global geometry to include ssd
2024-12-05 18:20:10 +01:00
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
may
0ffe6ae718
wayland: Implement cursor-shape-v1
2024-09-09 16:21:27 +02:00
João Capucho
3c24934f48
Track if a move or resize request is client initiated
2024-08-23 17:18:39 +02:00
Victoria Brekenfeld
dc3dbfdba0
chore: Remove unused method
2024-08-02 20:54:15 +02:00
Victoria Brekenfeld
c3524d3546
stack: Fix round corners on maximize
2024-08-02 20:54:15 +02:00
Victoria Brekenfeld
61f11d1363
element/stack: Style fixes
2024-07-26 14:59:11 +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
Michael Aaron Murphy
553c49b42b
feat: runtime configurable keybindings
2024-07-01 15:20:23 +02:00
Victoria Brekenfeld
92f3dbce01
chore: Cleanup
2024-06-26 12:59:33 +02:00
Victoria Brekenfeld
c7d50e7c5b
seat: Make render-related state thread-safe
2024-06-26 12:59:33 +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
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
Ian Douglas Scott
8cee91c88f
Support touch drag for SSD toplevels, and stacks
...
We already direct touch events to Iced, and the Cosmic `HeaderBar`
widget already recognizes drags from touch events. So it seems updating
`last_seat` is all that was needed for windows SSDs.
For stacks, the same works, plus moving using the same logic for
detecting drags that is used for mouse events.
2024-04-19 09:30:46 +02:00
Victoria Brekenfeld
5d5a510691
state: Move shell behind RwLock
2024-04-16 18:50:54 +02:00
Ian Douglas Scott
c957d673ba
CosmicStack: Share Focus type with CosmicWindow
...
There's probably more duplicated logic that can be abstracted, but this
removes a bit of redundancy at least.
2024-04-02 17:12:28 +02:00
Ian Douglas Scott
26d2556be0
Initial touch support for SSD
2024-04-02 17:12:28 +02:00
Victoria Brekenfeld
3da08ed22d
stack: Adjust decorations to window geometry
2024-03-28 18:21:44 +01:00
Victoria Brekenfeld
3cff426805
focus: Fix screencopy
2024-03-26 18:50:56 +01:00
Victoria Brekenfeld
5459f52d5e
input: Rework PointerFocus to operate directly on WlSurface
2024-03-26 18:50:56 +01:00
Victoria Brekenfeld
b40d153809
cosmic-screencopy-v2
2024-03-25 16:55:31 +01:00
Victoria Brekenfeld
973cfed87b
shell: Handle unmapped windows correctly
2024-03-25 12:51:01 +01:00
Victoria Brekenfeld
55eb2fe88e
xwayland: Globally track stacking order
2024-03-25 12:51:01 +01:00
Victoria Brekenfeld
6858238bd6
shell: Unify element_for_(x11_|wl_)surface
2024-03-25 12:51:01 +01:00
Ian Douglas Scott
39ebf39e4f
Update libcosmic/iced
2024-03-22 21:54:45 +01:00
Victoria Brekenfeld
7234a81672
stack: Don't force constant redraws
2024-03-22 18:22:58 +01:00
Victoria Brekenfeld
32424d156a
stack: Set suspended state
2024-03-04 19:20:52 +01:00
Victoria Brekenfeld
3eb7e5f82e
shell: implement minimize
2024-03-04 19:20:52 +01:00
Victoria Brekenfeld
3c3a5f2ccf
stack: Add interactive resize
2024-03-04 13:19:57 +01:00
Michael Aaron Murphy
d9750ffb76
fix(stack): set correct colors for light theme
2024-03-04 13:07:43 +01:00
Victoria Brekenfeld
e9c5266509
stack: Fix rendering of inactive windows
2024-01-15 11:02:56 +01:00
Victoria Brekenfeld
db09b4d364
stack: Fix mouse offset on windows with non-zero geometry
2024-01-15 11:02:56 +01:00
Victoria Brekenfeld
b762ea1852
stack: Fix dragging out to the top (or the sides)
2024-01-15 11:02:56 +01:00
Victoria Brekenfeld
769b7d6996
shell: Refactor move_request, consider sticky windows
2024-01-02 13:24:07 +01:00
Victoria Brekenfeld
d2e394b957
menu: Allow toggling sticky state
2024-01-02 13:24:07 +01:00
Victoria Brekenfeld
75990ff056
menu: Add stack tab specific menu
2023-12-12 18:39:41 +01:00
Victoria Brekenfeld
1dfaef4874
stack: formatting cleanup
2023-12-12 18:39:41 +01:00
Victoria Brekenfeld
e347076145
move_grab: End correctly when removed externally
2023-12-12 18:39:41 +01:00
Victoria Brekenfeld
8c4d77e43c
shell: Add window menu
2023-12-12 18:39:41 +01:00
Victoria Brekenfeld
edfb0edda7
grabs: Add ReleaseMode for menu-initiated grabs
2023-12-12 18:39:41 +01:00
Victoria Brekenfeld
ac77ab974a
stack: Fix X11 order
2023-11-23 12:57:42 +01:00