aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-02-08 15:25:14 +0100
committerKenny Levinsen <kl@kl.wtf>2023-02-10 20:36:15 +0100
commit1cab17ada243385798b3340f88144f64ac33ee63 (patch)
treeefb573543dc226d9f35a26ff21481d61ad6ae717 /include
parent8e4b6595786edf307623b9f1fcf3c7e5c8fa3833 (diff)
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 {
struct wl_event_source *frame_done_timer;
};
+void surface_enter_output(struct wlr_surface *surface,
+ struct sway_output *output);
+void surface_leave_output(struct wlr_surface *surface,
+ struct sway_output *output);
+
#endif