compositor: Remove compositor->seat

Get rid of this quick-and-dirty assumption.
dev
Kristian Høgsberg 12 years ago
parent ef6f136d65
commit 16333ab0ab
  1. 1
      src/compositor-android.c
  2. 2
      src/compositor-drm.c
  3. 3
      src/compositor.h

@ -340,7 +340,6 @@ android_seat_create(struct android_compositor *compositor)
weston_seat_init(&seat->base, &compositor->base); weston_seat_init(&seat->base, &compositor->base);
seat->base.led_update = android_led_update; seat->base.led_update = android_led_update;
wl_list_init(&seat->devices_list); wl_list_init(&seat->devices_list);
compositor->base.seat = &seat->base;
android_seat_scan_devices(seat, "/dev/input"); android_seat_scan_devices(seat, "/dev/input");

@ -2037,8 +2037,6 @@ evdev_input_create(struct weston_compositor *c, struct udev *udev,
} }
evdev_add_devices(udev, &seat->base); evdev_add_devices(udev, &seat->base);
c->seat = &seat->base;
} }
static void static void

@ -290,9 +290,6 @@ struct weston_compositor {
struct wl_event_loop *input_loop; struct wl_event_loop *input_loop;
struct wl_event_source *input_loop_source; 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 fade_layer;
struct weston_layer cursor_layer; struct weston_layer cursor_layer;

Loading…
Cancel
Save