mirror of
https://github.com/swaywm/sway.git
synced 2025-11-05 13:29:51 -05:00
Partially implement move command
Works:
- move [container|window] to workspace <name>
- Note, this should be able to move C_CONTAINER but this is untested
- move [workspace] to output [left|right|up|down|<name>]
Not implemented yet:
- move [left|right|up|down]
- move scratchpad
- move position
This commit is contained in:
parent
122b96abed
commit
b2d871cfe2
12 changed files with 268 additions and 41 deletions
|
|
@ -33,6 +33,23 @@ static list_t *get_bfs_queue() {
|
|||
return bfs_queue;
|
||||
}
|
||||
|
||||
const char *container_type_to_str(enum sway_container_type type) {
|
||||
switch (type) {
|
||||
case C_ROOT:
|
||||
return "C_ROOT";
|
||||
case C_OUTPUT:
|
||||
return "C_OUTPUT";
|
||||
case C_WORKSPACE:
|
||||
return "C_WORKSPACE";
|
||||
case C_CONTAINER:
|
||||
return "C_CONTAINER";
|
||||
case C_VIEW:
|
||||
return "C_VIEW";
|
||||
default:
|
||||
return "C_UNKNOWN";
|
||||
}
|
||||
}
|
||||
|
||||
static void notify_new_container(struct sway_container *container) {
|
||||
wl_signal_emit(&root_container.sway_root->events.new_container, container);
|
||||
ipc_event_window(container, "new");
|
||||
|
|
@ -54,6 +71,7 @@ static struct sway_container *container_create(enum sway_container_type type) {
|
|||
}
|
||||
|
||||
wl_signal_init(&c->events.destroy);
|
||||
wl_signal_init(&c->events.reparent);
|
||||
|
||||
return c;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue