mirror of
https://github.com/swaywm/sway.git
synced 2026-04-23 06:46:27 -04:00
Merge 54e3c49698 into b223f70250
This commit is contained in:
commit
d09d566a2e
1 changed files with 5 additions and 5 deletions
|
|
@ -1070,6 +1070,11 @@ static void view_child_handle_surface_map(struct wl_listener *listener,
|
||||||
wl_container_of(listener, child, surface_map);
|
wl_container_of(listener, child, surface_map);
|
||||||
child->mapped = true;
|
child->mapped = true;
|
||||||
view_child_damage(child, true);
|
view_child_damage(child, true);
|
||||||
|
|
||||||
|
struct sway_workspace *workspace = child->view->container->pending.workspace;
|
||||||
|
if (workspace) {
|
||||||
|
wlr_surface_send_enter(child->surface, workspace->output->wlr_output);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void view_child_handle_surface_unmap(struct wl_listener *listener,
|
static void view_child_handle_surface_unmap(struct wl_listener *listener,
|
||||||
|
|
@ -1114,11 +1119,6 @@ void view_child_init(struct sway_view_child *child,
|
||||||
wl_signal_add(&view->events.unmap, &child->view_unmap);
|
wl_signal_add(&view->events.unmap, &child->view_unmap);
|
||||||
child->view_unmap.notify = view_child_handle_view_unmap;
|
child->view_unmap.notify = view_child_handle_view_unmap;
|
||||||
|
|
||||||
struct sway_workspace *workspace = child->view->container->pending.workspace;
|
|
||||||
if (workspace) {
|
|
||||||
wlr_surface_send_enter(child->surface, workspace->output->wlr_output);
|
|
||||||
}
|
|
||||||
|
|
||||||
view_child_init_subsurfaces(child, surface);
|
view_child_init_subsurfaces(child, surface);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue