compositor: assign output to drag surfaces
authorAnder Conselvan de Oliveira <conselvan2@gmail.com>
Thu, 23 Feb 2012 11:29:26 +0000 (13:29 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 23 Feb 2012 21:12:30 +0000 (16:12 -0500)
Otherwise we endup with a surface that is mapped but with outtup nil.

src/compositor.c

index 5a424fa..97f7c3e 100644 (file)
@@ -1797,6 +1797,7 @@ weston_input_update_drag_surface(struct wl_input_device *input_device,
            device->drag_surface->buffer) {
                wl_list_insert(weston_compositor_top(device->compositor),
                               &device->drag_surface->link);
+               weston_surface_assign_output(device->drag_surface);
        }
 
        if (!dx && !dy)