mirror of
https://github.com/swaywm/sway.git
synced 2024-12-29 00:16:22 +01:00
ipc: clean-up container_create_notify function
This commit is contained in:
parent
e7c94708f2
commit
6ae2e3a4a8
1 changed files with 1 additions and 3 deletions
|
@ -42,14 +42,12 @@ const char *container_type_to_str(enum sway_container_type type) {
|
|||
}
|
||||
|
||||
void container_create_notify(struct sway_container *container) {
|
||||
// TODO send ipc event type based on the container type
|
||||
wl_signal_emit(&root_container.sway_root->events.new_container, container);
|
||||
|
||||
if (container->type == C_VIEW) {
|
||||
ipc_event_window(container, "new");
|
||||
} else if (container->type == C_WORKSPACE) {
|
||||
ipc_event_workspace(NULL, container, "init");
|
||||
}
|
||||
wl_signal_emit(&root_container.sway_root->events.new_container, container);
|
||||
}
|
||||
|
||||
void container_update_textures_recursive(struct sway_container *con) {
|
||||
|
|
Loading…
Reference in a new issue