mirror of
https://github.com/swaywm/sway.git
synced 2024-12-28 07:56:31 +01:00
ipc: only emit window::create event for views
This commit is contained in:
parent
317217f2c8
commit
07101a5707
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ 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 || container->type == C_CONTAINER) {
|
||||
if (container->type == C_VIEW) {
|
||||
ipc_event_window(container, "new");
|
||||
} else if (container->type == C_WORKSPACE) {
|
||||
ipc_event_workspace(NULL, container, "init");
|
||||
|
|
Loading…
Reference in a new issue