Vukašin Vojinović
b7a34bdd1e
fix(menu): styling
...
Also improves the styling of resize indicators, and removes the unnecessary `.density()` method call for the SSD header.
2024-10-10 19:58:56 +02:00
may
be38da47e9
use Grabbing cursor instead of Grab cursor
...
when i implemented the cursor-shape-v1 protocol i
didn't notice that the previous `CursorShape::Grab`
actually mapped to `CursorIcon::Grabbing` instead of
`CursorIcon::Grab`. this fixes that "regression".
2024-10-08 14:39:33 +02:00
Victoria Brekenfeld
ad449f9db0
chore: libcosmic update
2024-09-20 12:43:58 +02:00
may
0ffe6ae718
wayland: Implement cursor-shape-v1
2024-09-09 16:21:27 +02:00
skewballfox
7da0bc430a
added cursor_follows_focus and focus_follows_cursor
2024-09-04 20:22:40 +02:00
julianbraha
06d25df4ef
Iterate over the array instead of an unnecessary vector
2024-08-29 16:39:39 +02:00
João Capucho
3c24934f48
Track if a move or resize request is client initiated
2024-08-23 17:18:39 +02:00
Ian Douglas Scott
3625454420
Use monotonic time instead of 0 for motion events
...
Update to https://github.com/Smithay/smithay/pull/1509 , and adopt a
similar change.
2024-08-22 07:22:44 -06: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
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
Ryan Brue
90227471bf
feat: floating window tiling gaps
2024-04-22 10:44:14 +02:00
Ian Douglas Scott
17ddc7ce24
Update smithay
...
Updates for changes in https://github.com/Smithay/smithay/pull/1391 .
2024-04-17 11:59:13 +02:00
Victoria Brekenfeld
5d5a510691
state: Move shell behind RwLock
2024-04-16 18:50:54 +02:00
Victoria Brekenfeld
647deb81f1
shell: Move seats into shell
2024-04-16 18:50:54 +02:00
Ian Douglas Scott
1216cd0b67
Add unset method to input grab traits
...
Fixes https://github.com/pop-os/cosmic-comp/issues/403 .
2024-04-15 18:53:09 +02:00
Ian Douglas Scott
f2efc5d56f
shell: Fix MoveGrab with touch not on output pointer is on
2024-04-15 11:37:03 +02:00
Ian Douglas Scott
2961291d26
shell: Fix moving floating windows with touch
2024-04-15 11:37:03 +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
Ian Douglas Scott
b18a3a8bc7
shell: Touch support for move grab
...
Touch support is still needed for other grabs. And SSDs (and libcosmic)
need to start move/menu/etc. based on touch.
2024-04-15 11:37:03 +02:00
Ryan Brue
f85911020a
fix: reduce size of top snap range
2024-04-11 13:28:19 +02:00
Ian Douglas Scott
2ff8a2d200
moving: Show snapping_indicator only on current output
...
Without this check, a floating window that is dragged near an edge
between monitors causes snapping indicators to show on both, since the
window intersects both.
2024-04-11 11:49:12 +02:00
Victoria Brekenfeld
5459f52d5e
input: Rework PointerFocus to operate directly on WlSurface
2024-03-26 18:50:56 +01:00
Victoria Brekenfeld
973cfed87b
shell: Handle unmapped windows correctly
2024-03-25 12:51:01 +01:00
Ian Douglas Scott
39ebf39e4f
Update libcosmic/iced
2024-03-22 21:54:45 +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
7ac432c013
menu: Add minimize entry
2024-03-04 19:20:52 +01:00
Victoria Brekenfeld
3eb7e5f82e
shell: implement minimize
2024-03-04 19:20:52 +01:00
Ian Douglas Scott
3036448c19
Update Smithay, with Window that supports X11 surfaces
2024-02-22 17:49:46 +01:00
Victoria Brekenfeld
96518a9f29
state: Fixup grabbed window frame callbacks
2024-02-19 13:09:49 +01:00
Victoria Brekenfeld
ce74675b0e
shell: Handle tiling_enabled for previous_state better
2024-01-29 01:48:40 +01:00
Ian Douglas Scott
e569e14a99
Update to latest libcosmic/iced
2024-01-18 20:27:51 +01:00
Victoria Brekenfeld
9ca5edc836
floating: Allow dragging windows into stacks
2024-01-15 11:02:56 +01:00
Victoria Brekenfeld
835dbe45f3
shell: Unify mapping windows into stacks logic
2024-01-15 11:02:56 +01:00
Victoria Brekenfeld
9ce6a871c1
moving: Fix dragging against lower/right screen edges
2024-01-03 16:58:22 +01:00
Victoria Brekenfeld
c306e11a22
menu: Fix text appearance of disabled entries
2024-01-02 13:24:07 +01:00
Victoria Brekenfeld
003b7fb538
menu: Update order, disable move on sticky instead of remove
2024-01-02 13:24:07 +01:00
Victoria Brekenfeld
e4298df306
menu: Don't display tiling state for sticky windows
2024-01-02 13:24:07 +01:00
Victoria Brekenfeld
a333753c96
shell: Lift toggle_stacking(_focused) to handle sticky windows
2024-01-02 13:24:07 +01:00
Victoria Brekenfeld
807f63bb72
shell: Lift/refactor (un)maximize, consider sticky windows
2024-01-02 13:24:07 +01:00
Victoria Brekenfeld
769b7d6996
shell: Refactor move_request, consider sticky windows
2024-01-02 13:24:07 +01:00