mirror of
https://github.com/swaywm/sway.git
synced 2026-04-23 06:46:27 -04:00
Implement wlr-foreign-toplevel-management-v1
This commit is contained in:
parent
eeb90a7963
commit
8d5e627bc9
5 changed files with 66 additions and 0 deletions
|
|
@ -1168,6 +1168,10 @@ void container_discover_outputs(struct sway_container *con) {
|
|||
if (con->view) {
|
||||
view_for_each_surface(con->view,
|
||||
surface_send_enter_iterator, output->wlr_output);
|
||||
if (con->view->foreign_toplevel) {
|
||||
wlr_foreign_toplevel_handle_v1_output_enter(
|
||||
con->view->foreign_toplevel, output->wlr_output);
|
||||
}
|
||||
}
|
||||
list_add(con->outputs, output);
|
||||
} else if (!intersects && index != -1) {
|
||||
|
|
@ -1176,6 +1180,10 @@ void container_discover_outputs(struct sway_container *con) {
|
|||
if (con->view) {
|
||||
view_for_each_surface(con->view,
|
||||
surface_send_leave_iterator, output->wlr_output);
|
||||
if (con->view->foreign_toplevel) {
|
||||
wlr_foreign_toplevel_handle_v1_output_leave(
|
||||
con->view->foreign_toplevel, output->wlr_output);
|
||||
}
|
||||
}
|
||||
list_del(con->outputs, index);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue