aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2017-11-21 18:43:22 +0100
committeremersion <contact@emersion.fr>2017-11-21 18:43:22 +0100
commit5a664e1e46df78c10977a4a9ee0bc53e5acf3772 (patch)
tree4b3a140a6220211df6110d040789a0eed0f88f36
parentdcb168914e714156605eb9be03e175de78092e50 (diff)
Fix messed up outputs after fullscreen
-rw-r--r--types/wlr_output.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/types/wlr_output.c b/types/wlr_output.c
index bc89c97a..2ee95162 100644
--- a/types/wlr_output.c
+++ b/types/wlr_output.c
@@ -379,7 +379,7 @@ static void output_fullscreen_surface_reset(struct wlr_output *output) {
static void output_fullscreen_surface_handle_commit(
struct wl_listener *listener, void *data) {
struct wlr_output *output = wl_container_of(listener, output,
- fullscreen_surface_destroy);
+ fullscreen_surface_commit);
output->needs_swap = true;
}
@@ -393,6 +393,7 @@ static void output_fullscreen_surface_handle_destroy(
void wlr_output_set_fullscreen_surface(struct wlr_output *output,
struct wlr_surface *surface) {
// TODO: hardware fullscreen
+
if (output->fullscreen_surface == surface) {
return;
}