diff options
author | Simon Ser <contact@emersion.fr> | 2023-02-08 15:25:14 +0100 |
---|---|---|
committer | Kenny Levinsen <kl@kl.wtf> | 2023-02-10 20:36:15 +0100 |
commit | 1cab17ada243385798b3340f88144f64ac33ee63 (patch) | |
tree | efb573543dc226d9f35a26ff21481d61ad6ae717 /sway/lock.c | |
parent | Clarify documentation for window_rect (diff) | |
download | sway-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/lock.c')
-rw-r--r-- | sway/lock.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/lock.c b/sway/lock.c index 96af19c4..6d9e991b 100644 --- a/sway/lock.c +++ b/sway/lock.c | |||
@@ -5,6 +5,7 @@ | |||
5 | #include "sway/input/seat.h" | 5 | #include "sway/input/seat.h" |
6 | #include "sway/output.h" | 6 | #include "sway/output.h" |
7 | #include "sway/server.h" | 7 | #include "sway/server.h" |
8 | #include "sway/surface.h" | ||
8 | 9 | ||
9 | struct sway_session_lock_surface { | 10 | struct sway_session_lock_surface { |
10 | struct wlr_session_lock_surface_v1 *lock_surface; | 11 | struct wlr_session_lock_surface_v1 *lock_surface; |
@@ -31,7 +32,7 @@ static void handle_surface_map(struct wl_listener *listener, void *data) { | |||
31 | if (server.session_lock.focused == NULL) { | 32 | if (server.session_lock.focused == NULL) { |
32 | set_lock_focused_surface(surf->surface); | 33 | set_lock_focused_surface(surf->surface); |
33 | } | 34 | } |
34 | wlr_surface_send_enter(surf->surface, surf->output->wlr_output); | 35 | surface_enter_output(surf->surface, surf->output); |
35 | output_damage_whole(surf->output); | 36 | output_damage_whole(surf->output); |
36 | } | 37 | } |
37 | 38 | ||