aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/view.c
diff options
context:
space:
mode:
authorLibravatar Simon Ser <contact@emersion.fr>2023-02-08 15:25:14 +0100
committerLibravatar Kenny Levinsen <kl@kl.wtf>2023-02-10 20:36:15 +0100
commit1cab17ada243385798b3340f88144f64ac33ee63 (patch)
treeefb573543dc226d9f35a26ff21481d61ad6ae717 /sway/tree/view.c
parentClarify documentation for window_rect (diff)
downloadsway-1cab17ada243385798b3340f88144f64ac33ee63.tar.gz
sway-1cab17ada243385798b3340f88144f64ac33ee63.tar.zst
sway-1cab17ada243385798b3340f88144f64ac33ee63.zip
Introduce surface_{enter,leave}_output()
We can centralize all output-related surface events from there.
Diffstat (limited to 'sway/tree/view.c')
-rw-r--r--sway/tree/view.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c
index ba3ef489..fcb78de3 100644
--- a/sway/tree/view.c
+++ b/sway/tree/view.c
@@ -25,6 +25,7 @@
25#include "sway/output.h" 25#include "sway/output.h"
26#include "sway/input/seat.h" 26#include "sway/input/seat.h"
27#include "sway/server.h" 27#include "sway/server.h"
28#include "sway/surface.h"
28#include "sway/tree/arrange.h" 29#include "sway/tree/arrange.h"
29#include "sway/tree/container.h" 30#include "sway/tree/container.h"
30#include "sway/tree/view.h" 31#include "sway/tree/view.h"
@@ -1148,7 +1149,7 @@ void view_child_init(struct sway_view_child *child,
1148 if (container != NULL) { 1149 if (container != NULL) {
1149 struct sway_workspace *workspace = container->pending.workspace; 1150 struct sway_workspace *workspace = container->pending.workspace;
1150 if (workspace) { 1151 if (workspace) {
1151 wlr_surface_send_enter(child->surface, workspace->output->wlr_output); 1152 surface_enter_output(child->surface, workspace->output);
1152 } 1153 }
1153 } 1154 }
1154 1155