It was never clear what this field really did.
if (ec->base.session_active) {
weston_log("activating session\n");
- compositor->focus = 1;
compositor->state = ec->prev_state;
drm_compositor_set_modes(ec);
weston_compositor_damage_all(compositor);
weston_log("deactivating session\n");
udev_input_disable(&ec->input);
- compositor->focus = 0;
ec->prev_state = compositor->state;
weston_compositor_offscreen(compositor);
ec->base.destroy = drm_destroy;
ec->base.restore = drm_restore;
- ec->base.focus = 1;
-
ec->prev_state = WESTON_COMPOSITOR_ACTIVE;
for (key = KEY_F1; key < KEY_F9; key++)
if (compositor->base.session_active) {
weston_log("entering VT\n");
- compositor->base.focus = 1;
compositor->base.state = compositor->prev_state;
wl_list_for_each(output, &compositor->base.output_list, link) {
fbdev_output_disable(output);
}
- compositor->base.focus = 0;
compositor->prev_state = compositor->base.state;
weston_compositor_offscreen(&compositor->base);
compositor->base.destroy = fbdev_compositor_destroy;
compositor->base.restore = fbdev_restore;
- compositor->base.focus = 1;
compositor->prev_state = WESTON_COMPOSITOR_ACTIVE;
compositor->use_pixman = !param->use_gl;
if (compositor->base.session_active) {
weston_log("activating session\n");
- compositor->base.focus = 1;
compositor->base.state = compositor->prev_state;
weston_compositor_damage_all(&compositor->base);
wl_list_for_each(seat, &compositor->base.seat_list, link) {
evdev_remove_devices(seat);
}
- compositor->base.focus = 0;
compositor->prev_state = compositor->base.state;
weston_compositor_offscreen(&compositor->base);
compositor->base.destroy = rpi_compositor_destroy;
compositor->base.restore = rpi_restore;
- compositor->base.focus = 1;
compositor->prev_state = WESTON_COMPOSITOR_ACTIVE;
compositor->single_buffer = param->renderer.single_buffer;
{
struct weston_seat *seat;
- if (!compositor->focus)
+ if (!compositor->session_active)
return;
wl_list_for_each(seat, &compositor->seat_list, link)
struct weston_plane primary_plane;
uint32_t capabilities; /* combination of enum weston_capability */
- uint32_t focus;
-
struct weston_renderer *renderer;
pixman_format_code_t read_format;
int len;
ec = device->seat->compositor;
- if (!ec->focus)
+ if (!ec->session_active)
return 1;
/* If the compositor is repainting, this function is called only once
if (output) {
move_pointer(seat, x, y);
- compositor->focus = 1;
} else {
- compositor->focus = 0;
/* FIXME: We should call weston_pointer_set_focus(seat,
* NULL) here, but somehow that breaks re-entry... */
}
struct weston_seat *seat = get_seat(test);
struct weston_pointer *pointer = seat->pointer;
- test->compositor->focus = 1;
-
notify_motion(seat, 100,
wl_fixed_from_int(x) - pointer->x,
wl_fixed_from_int(y) - pointer->y);
struct weston_test *test = wl_resource_get_user_data(resource);
struct weston_seat *seat = get_seat(test);
- test->compositor->focus = 1;
-
notify_button(seat, 100, button, state);
}
struct weston_test *test = wl_resource_get_user_data(resource);
struct weston_seat *seat = get_seat(test);
- test->compositor->focus = 1;
-
notify_key(seat, 100, key, state, STATE_UPDATE_AUTOMATIC);
}