compositor: Remove compositor->seat
authorKristian Høgsberg <krh@bitplanet.net>
Fri, 10 Aug 2012 14:08:21 +0000 (10:08 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 10 Aug 2012 14:08:21 +0000 (10:08 -0400)
Get rid of this quick-and-dirty assumption.

src/compositor-android.c
src/compositor-drm.c
src/compositor.h

index 606e348..e6d57a3 100644 (file)
@@ -340,7 +340,6 @@ android_seat_create(struct android_compositor *compositor)
        weston_seat_init(&seat->base, &compositor->base);
        seat->base.led_update = android_led_update;
        wl_list_init(&seat->devices_list);
-       compositor->base.seat = &seat->base;
 
        android_seat_scan_devices(seat, "/dev/input");
 
index 7a07610..933a273 100644 (file)
@@ -2037,8 +2037,6 @@ evdev_input_create(struct weston_compositor *c, struct udev *udev,
        }
 
        evdev_add_devices(udev, &seat->base);
-
-       c->seat = &seat->base;
 }
 
 static void
index 85877eb..b3c554b 100644 (file)
@@ -290,9 +290,6 @@ struct weston_compositor {
        struct wl_event_loop *input_loop;
        struct wl_event_source *input_loop_source;
 
-       /* There can be more than one, but not right now... */
-       struct weston_seat *seat;
-
        struct weston_layer fade_layer;
        struct weston_layer cursor_layer;