sway/sway/commands
Claude Code b48239588f
feat(workspace): add marks support to workspaces
Workspaces can now have marks just like containers. This enables the
pattern of marking a workspace with [con_id=X] and then using
"move container to mark" to reparent containers to workspaces.

Changes:
- Add marks list to sway_workspace struct
- Add workspace_has_mark, workspace_add_mark, workspace_clear_marks,
  workspace_find_and_unmark, workspace_find_mark functions
- Update mark command to work on workspaces when targeted via criteria
- Update unmark command to support workspaces
- Update move.c to find marks on workspaces for "move to mark"
- Update criteria con_mark matching to also check workspaces
- Add workspace marks to IPC JSON output

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-27 14:40:26 +00:00
..
bar Use has_prefix() instead of strncmp() throughout 2025-01-07 16:35:31 +01:00
input Use has_prefix() instead of strncmp() throughout 2025-01-07 16:35:31 +01:00
output Add support for HDR10 output 2025-07-09 01:25:11 +02:00
seat Drop server.h include from input/input-manager.h 2024-05-27 09:28:43 -04:00
allow_tearing.c Add support for tearing-control-v1 2024-08-05 02:13:49 +02:00
assign.c Use has_prefix() instead of strncmp() throughout 2025-01-07 16:35:31 +01:00
bar.c Define _POSIX_C_SOURCE globally 2024-02-23 17:43:19 +03:00
bind.c stringop: fix has_prefix() arg order in config parsing 2025-03-20 21:31:32 +01:00
border.c container: Move pending state to state struct 2021-02-16 22:05:00 -05:00
client.c Delete old damage tracking code 2024-01-18 18:36:54 +03:00
create_output.c Implement create_output command for headless backend 2020-04-14 16:06:20 +02:00
default_border.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
default_floating_border.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
default_orientation.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
exec.c exec: fix validation during config reload 2020-08-24 09:41:54 +02:00
exec_always.c Use pthread_atfork() to restore signals and NOFILE limit 2025-04-21 15:17:36 +02:00
exit.c server: move sway_terminate() definition to header 2025-04-17 23:31:55 +02:00
floating.c container: Move pending state to state struct 2021-02-16 22:05:00 -05:00
floating_minmax_size.c commands: add printf attribute to cmd_results_new() 2023-04-14 18:34:54 +02:00
floating_modifier.c Add ability to remove the floating modifier 2020-01-20 09:19:04 -07:00
focus.c commands/focus: fix segfault when no container is already focused. 2022-03-06 18:24:16 -07:00
focus_follows_mouse.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
focus_on_window_activation.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
focus_wrapping.c focus: support focus_wrapping workspace 2019-10-17 13:48:52 +03:00
font.c Use has_prefix() instead of strncmp() throughout 2025-01-07 16:35:31 +01:00
for_window.c commands: add printf attribute to cmd_results_new() 2023-04-14 18:34:54 +02:00
force_display_urgency_hint.c fix force_display_urgency_hint parsing 2020-08-03 15:39:48 +02:00
force_focus_wrapping.c Add deprecation warnings for new_float, new_window, and force_focus_wrapping. 2019-04-14 20:44:12 -04:00
fullscreen.c cmd_fullscreen: ignore fullscreen request on workspaces 2021-05-10 10:30:44 +02:00
gaps.c commands/gaps: Check config->reading instead 2024-09-21 16:16:19 +02:00
gesture.c stringop: fix has_prefix() arg order in config parsing 2025-03-20 21:31:32 +01:00
hide_edge_borders.c commands: add printf attribute to cmd_results_new() 2023-04-14 18:34:54 +02:00
include.c commands/include: handle many files in single line 2024-11-17 19:18:51 +01:00
inhibit_idle.c idle-inhibit-v1: simplify with server global 2023-06-23 12:32:38 +02:00
input.c config: Batch input/output configuration on load 2024-09-21 17:50:24 -04:00
kill.c Replace wlr_log with sway_log 2019-01-21 12:59:42 +01:00
layout.c sway/commands/layout: fix flatten parent once 2025-10-18 18:55:46 +02:00
mark.c feat(workspace): add marks support to workspaces 2025-12-27 14:40:26 +00:00
max_render_time.c view: add max_render_time 2019-11-17 20:18:42 +01:00
mode.c Define _POSIX_C_SOURCE globally 2024-02-23 17:43:19 +03:00
mouse_warping.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
move.c feat(workspace): add marks support to workspaces 2025-12-27 14:40:26 +00:00
new_float.c Add deprecation warnings for new_float, new_window, and force_focus_wrapping. 2019-04-14 20:44:12 -04:00
new_window.c Add deprecation warnings for new_float, new_window, and force_focus_wrapping. 2019-04-14 20:44:12 -04:00
no_focus.c commands: add printf attribute to cmd_results_new() 2023-04-14 18:34:54 +02:00
nop.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
opacity.c commands/opacity: Call output_configure_scene on updated container 2025-02-25 11:11:22 +01:00
output.c Add support for HDR10 output 2025-07-09 01:25:11 +02:00
popup_during_fullscreen.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
primary_selection.c commands: note how xwayland/primary_selection are reset on reload 2024-02-05 11:07:33 +01:00
reload.c Define _POSIX_C_SOURCE globally 2024-02-23 17:43:19 +03:00
rename.c commands: add printf attribute to cmd_results_new() 2023-04-14 18:34:54 +02:00
resize.c commands/resize: make resize consider all siblings 2025-08-03 20:15:39 +02:00
scratchpad.c sway/commands: Return error if container is not in scratchpad 2025-03-18 22:28:05 +01:00
seat.c Declare all struct cmd_handler arrays const 2021-02-04 09:49:06 +01:00
set.c Define _POSIX_C_SOURCE globally 2024-02-23 17:43:19 +03:00
shortcuts_inhibitor.c Drop server.h include from input/input-manager.h 2024-05-27 09:28:43 -04:00
show_marks.c Define _POSIX_C_SOURCE globally 2024-02-23 17:43:19 +03:00
smart_borders.c smart_borders: separate smartness from edge types 2019-11-04 21:16:27 -05:00
smart_gaps.c Add smart_gaps inverse_outer command 2021-10-29 13:37:58 +02:00
split.c Fix old style function definitions 2023-04-14 18:21:43 +02:00
sticky.c container: Move pending state to state struct 2021-02-16 22:05:00 -05:00
swap.c build: drop xwayland option 2024-05-21 11:44:39 -04:00
swaybg_command.c Replace wlr_log with sway_log 2019-01-21 12:59:42 +01:00
swaynag_command.c Replace wlr_log with sway_log 2019-01-21 12:59:42 +01:00
tiling_drag.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
tiling_drag_threshold.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
title_align.c Delete old damage tracking code 2024-01-18 18:36:54 +03:00
title_format.c move title_format to container 2024-09-02 16:49:05 -04:00
titlebar_border_thickness.c Delete old damage tracking code 2024-01-18 18:36:54 +03:00
titlebar_padding.c Delete old damage tracking code 2024-01-18 18:36:54 +03:00
unmark.c feat(workspace): add marks support to workspaces 2025-12-27 14:40:26 +00:00
urgent.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
workspace.c Define _POSIX_C_SOURCE globally 2024-02-23 17:43:19 +03:00
workspace_layout.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
ws_auto_back_and_forth.c Remove trailing spaces 2025-06-05 18:15:56 +02:00
xwayland.c build: drop xwayland option 2024-05-21 11:44:39 -04:00