diff options
author | Scott Anderson <ascent12@hotmail.com> | 2017-05-04 21:58:11 +1200 |
---|---|---|
committer | Scott Anderson <ascent12@hotmail.com> | 2017-05-04 21:58:11 +1200 |
commit | 7e9feb70a0b50caf7e9072d3b5c77b4e91235efa (patch) | |
tree | 9fcd765e48833c7c9c550a65ce4ab19345e6b737 /example | |
parent | 4285b0c2187a401dc81d7535f0f0b82329cb0abb (diff) |
Fixed hotplugging + make EGL more chatty.
Diffstat (limited to 'example')
-rw-r--r-- | example/example-drm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/example/example-drm.c b/example/example-drm.c index a2643949..1b1cce79 100644 --- a/example/example-drm.c +++ b/example/example-drm.c @@ -22,6 +22,7 @@ struct state { void output_add(struct wl_listener *listener, void *data) { struct wlr_drm_output *out = data; + fprintf(stderr, "Output '%s' added\n", wlr_drm_output_get_name(out)); size_t num_modes; struct wlr_drm_mode *modes = wlr_drm_output_get_modes(out, &num_modes); @@ -31,7 +32,8 @@ void output_add(struct wl_listener *listener, void *data) void output_rem(struct wl_listener *listener, void *data) { - fprintf(stderr, "Output removed\n"); + struct wlr_drm_output *out = data; + fprintf(stderr, "Output '%s' removed\n", wlr_drm_output_get_name(out)); } void output_render(struct wl_listener *listener, void *data) |