compositor: Remove redundant and not well-defined focus field

It was never clear what this field really did.
This commit is contained in:
Kristian Høgsberg
2013-10-22 12:40:54 -07:00
parent 2e611264a3
commit 10ddd97ecf
8 changed files with 2 additions and 22 deletions
-6
View File
@@ -122,8 +122,6 @@ move_pointer(struct wl_client *client, struct wl_resource *resource,
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);
@@ -138,8 +136,6 @@ send_button(struct wl_client *client, struct wl_resource *resource,
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);
}
@@ -172,8 +168,6 @@ send_key(struct wl_client *client, struct wl_resource *resource,
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);
}