Skip to content

Commit

Permalink
Forgot strcmp
Browse files Browse the repository at this point in the history
  • Loading branch information
GhostNaN committed Aug 20, 2020
1 parent 3d03ab8 commit 86ecdb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 86ecdb5

Please sign in to comment.