aboutsummaryrefslogtreecommitdiffstats
path: root/include
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 /include
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 'include')
-rw-r--r--include/sway/surface.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sway/surface.h b/include/sway/surface.h
index fb1cd775..50681897 100644
--- a/include/sway/surface.h
+++ b/include/sway/surface.h
@@ -15,4 +15,9 @@ struct sway_surface {
15 struct wl_event_source *frame_done_timer; 15 struct wl_event_source *frame_done_timer;
16}; 16};
17 17
18void surface_enter_output(struct wlr_surface *surface,
19 struct sway_output *output);
20void surface_leave_output(struct wlr_surface *surface,
21 struct sway_output *output);
22
18#endif 23#endif