Victoria Brekenfeld
465813c1c5
shell: Using parking_lot's RwLock for fairness guarantees
2025-05-27 20:00:21 +02:00
Ian Douglas Scott
7340e2beff
Improve handling of XDG activation tokens in shell
...
Requires https://github.com/Smithay/smithay/pull/1676 .
This changes two things:
* `Workspace::is_empty` no longer checks if there are activation tokens,
but a separate `Workspace::can_auto_remove` checks if the workspace is
empty and has no activation tokens.
- When we add workspace pinning, that can also be checked there.
* `Workspace` no longer contains a `pending_tokens` list that is updated
on `refresh`. Instead, `can_auto_remove` takes the xdg activation
state as an argument.
Since `Workspace::refresh` normally is run for focused workspaces, this
fixes allowing non-focused workspaces to be removed when an activation
token expires. It seems generally good to avoid tracking the activation
tokens in two places, and this is probably more efficient than needing
to refresh in more places.
By splitting this, we still don't remove an empty workspace if it has a
pending activation token, but we also don't add an empty workspace for
an activation token.
This mitigates the confusing behavior with activation tokens that aren't
used, but having to wait a few seconds in some cases before a workspace
is removed is still a little confusing. (We probably want `cosmic-term`
and `cosmic-workspace` to either consume the activation tokens they are
passed, or not be passed tokens when started by keybinding?)
Fixes https://github.com/pop-os/cosmic-comp/issues/1099 .
2025-03-14 17:53:34 +01:00
Daniel
2553810621
grabs: Snap Window Edges to Close Output Edges
2025-02-14 11:58:09 +01:00
Victoria Brekenfeld
b793975689
shell: Don't animate programmatic maximize_requests
2025-02-07 13:02:42 +01:00
Victoria Brekenfeld
156f634944
shell: Handle maximize requests before commit
2025-02-07 13:02:42 +01:00
Victoria Brekenfeld
db13eea91c
shell: Allow active workspace to be None
2025-01-06 20:23:05 +01:00
Victoria Brekenfeld
9c7c41c508
toplevel-info/mgmt: Update to v2/v3
2024-09-23 10:55:00 +02:00
skewballfox
7da0bc430a
added cursor_follows_focus and focus_follows_cursor
2024-09-04 20:22:40 +02:00
Ian Douglas Scott
1342c000ab
Add ext-foreign-toplevel-list-v1 protocol
2024-08-29 17:04:12 +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
92f3dbce01
chore: Cleanup
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
4f076e0753
Update smithay, with xwayland shell, Cow, etc.
2024-05-21 19:31:50 +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
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
6858238bd6
shell: Unify element_for_(x11_|wl_)surface
2024-03-25 12:51:01 +01:00
Victoria Brekenfeld
2bf769ac32
stacks: Better handle minimize/unminimize of specific surface
2024-03-04 19:20:52 +01:00
Victoria Brekenfeld
3eb7e5f82e
shell: implement minimize
2024-03-04 19:20:52 +01:00
Victoria Brekenfeld
068b70d4bc
shell: empty (un)minimize handlers
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
849882a7db
clippy fixes
2024-02-19 13:09:49 +01:00
Victoria Brekenfeld
0ac12ce202
shell: Handle fullscreen of 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
Victoria Brekenfeld
d503e44ca8
shell: refactor single visible_output
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
02a6290067
xdg-shell: Fix menu offset
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
996b5a8227
shell: Move space_for_handle into Workspaces
2023-11-23 12:57:42 +01:00
Victoria Brekenfeld
f7cc1985e3
xdg-activation: Initial implementation
2023-11-09 13:48:34 +01:00
Ashley Wulber
abbe94e6e1
feat: theme integration
...
refactor: only apply updates if there is a change in the theme
refactor: include theme in state
cleanup: theme integration
2023-10-25 19:41:55 +02:00
Victoria Brekenfeld
64143e75e7
shell: Properly handle fullscreen outputs
2023-10-25 19:41:55 +02:00
Victoria Brekenfeld
72df9d07e6
shell: One workspace per output
2023-10-25 19:41:55 +02:00
Victoria Brekenfeld
4709a1d684
shell: Have Move-shortcut for floating layer and fullscreen windows
2023-09-20 18:57:58 +02:00
Victoria Brekenfeld
4e1c16c384
fullscreen: Use CosmicWindow for decorations
2023-09-18 18:51:21 +02:00
Victoria Brekenfeld
1a9f976818
xdg_shell: Trigger blocker evaluation on toplevel destruction
2023-08-01 16:49:29 +02:00
Victoria Brekenfeld
35de500c00
chore: update smithay + switch to tracing
2023-02-24 17:43:07 +01:00
Victoria Brekenfeld
4ed3aceefc
shell: Don't annouce toplevels before they have contents
2023-01-27 18:15:54 +01:00
Victoria Brekenfeld
1d28574088
xwayland: Add initial support
2023-01-18 20:25:32 +01:00
Victoria Brekenfeld
7992ad67f6
update smithay, iced; reworked window for xwayland
2023-01-16 15:37:54 +01:00
Victoria Brekenfeld
8a2e1e5c89
deps: Update smithay
2023-01-16 15:22:34 +01:00
Victoria Brekenfeld
f9d50e77a5
wayland/xdg: Refine popup positioning
2022-12-15 13:07:38 +01:00
Victoria Brekenfeld
38c0acb943
wayland: Explicitly handle destroyed surfaces
2022-11-23 16:10:37 +01:00
Victoria Brekenfeld
5a4df346a8
wip: screencopy
2022-11-23 16:09:58 +01:00
Victoria Brekenfeld
01b34aadd2
shell/floating: Add interactive move grab
2022-11-23 16:08:32 +01:00
Victoria Brekenfeld
7d068ab6bc
shell/floating: Reintroduce resizing
2022-11-23 16:08:32 +01:00