From 86ecdb5e63300282e11e772acb36ed69cf280c29 Mon Sep 17 00:00:00 2001 From: GhostNaN Date: Wed, 19 Aug 2020 20:54:55 -0400 Subject: Forgot strcmp --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 84ed1c3..18be375 100644 --- a/src/main.c +++ b/src/main.c @@ -213,7 +213,7 @@ static void destroy_display_output(struct display_output *output) { if (output->surface != NULL) { wl_surface_destroy(output->surface); } - if (egl_display && output->name == output->state->monitor) { + if (egl_display && strcmp(output->name,output->state->monitor) == 0) { eglDestroySurface(egl_display, egl_surface); wl_egl_window_destroy(egl_window); } -- cgit v1.2.3