cms-static: Use the right wl_listener for the output hotplug listener
authorKristian Høgsberg <krh@bitplanet.net>
Tue, 21 May 2013 15:44:22 +0000 (11:44 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 22 May 2013 18:20:42 +0000 (14:20 -0400)
src/cms-static.c

index 94fea99..782e22f 100644 (file)
@@ -73,7 +73,8 @@ static void
 cms_notifier_output_created(struct wl_listener *listener, void *data)
 {
        struct weston_output *o = (struct weston_output *) data;
-       struct cms_static *cms = container_of(listener, struct cms_static, destroy_listener);
+       struct cms_static *cms =
+               container_of(listener, struct cms_static, output_created_listener);
        cms_output_created(cms, o);
 }