gallium-egl: Don't add a listener for wl_drm twice in wayland platform
authorAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Thu, 18 Jul 2013 12:11:24 +0000 (15:11 +0300)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 7 Aug 2013 17:37:58 +0000 (10:37 -0700)
A listener is added just after the interface is bound, in
registry_handle_global().

Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
src/gallium/state_trackers/egl/wayland/native_drm.c

index a4bcdd8bab71637aa8b42f5c64d8aee0542586a2..e1aeeebe82a51373ffa34f7234acb5863c96fd5f 100644 (file)
@@ -227,7 +227,6 @@ wayland_drm_display_init_screen(struct native_display *ndpy)
    if (wayland_roundtrip(&drmdpy->base) < 0 || drmdpy->wl_drm == NULL)
       return FALSE;
 
-   wl_drm_add_listener(drmdpy->wl_drm, &drm_listener, drmdpy);
    if (wayland_roundtrip(&drmdpy->base) < 0 || drmdpy->fd == -1)
       return FALSE;