diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-08-20 18:30:09 +0900 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-06-23 22:26:00 +0200 |
commit | 8d5e627bc98f376f84e7f5b0a7caed791351c577 (patch) | |
tree | 7d90c18521bfbcc59155a418efbd9b489617086e /sway/tree/container.c | |
parent | input_cmd_click_method: fix typo in error text (diff) | |
download | sway-8d5e627bc98f376f84e7f5b0a7caed791351c577.tar.gz sway-8d5e627bc98f376f84e7f5b0a7caed791351c577.tar.zst sway-8d5e627bc98f376f84e7f5b0a7caed791351c577.zip |
Implement wlr-foreign-toplevel-management-v1
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r-- | sway/tree/container.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c index 2fbd0d38..4cc42747 100644 --- a/sway/tree/container.c +++ b/sway/tree/container.c | |||
@@ -1168,6 +1168,10 @@ void container_discover_outputs(struct sway_container *con) { | |||
1168 | if (con->view) { | 1168 | if (con->view) { |
1169 | view_for_each_surface(con->view, | 1169 | view_for_each_surface(con->view, |
1170 | surface_send_enter_iterator, output->wlr_output); | 1170 | surface_send_enter_iterator, output->wlr_output); |
1171 | if (con->view->foreign_toplevel) { | ||
1172 | wlr_foreign_toplevel_handle_v1_output_enter( | ||
1173 | con->view->foreign_toplevel, output->wlr_output); | ||
1174 | } | ||
1171 | } | 1175 | } |
1172 | list_add(con->outputs, output); | 1176 | list_add(con->outputs, output); |
1173 | } else if (!intersects && index != -1) { | 1177 | } else if (!intersects && index != -1) { |
@@ -1176,6 +1180,10 @@ void container_discover_outputs(struct sway_container *con) { | |||
1176 | if (con->view) { | 1180 | if (con->view) { |
1177 | view_for_each_surface(con->view, | 1181 | view_for_each_surface(con->view, |
1178 | surface_send_leave_iterator, output->wlr_output); | 1182 | surface_send_leave_iterator, output->wlr_output); |
1183 | if (con->view->foreign_toplevel) { | ||
1184 | wlr_foreign_toplevel_handle_v1_output_leave( | ||
1185 | con->view->foreign_toplevel, output->wlr_output); | ||
1186 | } | ||
1179 | } | 1187 | } |
1180 | list_del(con->outputs, index); | 1188 | list_del(con->outputs, index); |
1181 | } | 1189 | } |