aboutsummaryrefslogtreecommitdiff
path: root/rootston/seat.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-09-27 10:25:59 +0200
committeremersion <contact@emersion.fr>2018-09-27 10:25:59 +0200
commitdac4f8e19ffd19dfeee2c65270476a52c13d0f8f (patch)
tree2d268b14381f282afc58e1722e5ad61d1c19afda /rootston/seat.c
parent31cc2fa4f9eae8f6c884b35c500aef4225b3f9ef (diff)
pointer-constraints: refactoring
* Rename the constraint_create signal to new_constraint for consistency * Move the constraint_destroy signal to the constraint itself * Use rotate_child_position instead of duplicating logic * Fix inert constraint resource handling * Style fixes
Diffstat (limited to 'rootston/seat.c')
-rw-r--r--rootston/seat.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/rootston/seat.c b/rootston/seat.c
index 466f1429..e3336fde 100644
--- a/rootston/seat.c
+++ b/rootston/seat.c
@@ -307,14 +307,6 @@ static void handle_pointer_focus_change(struct wl_listener *listener,
roots_cursor_handle_focus_change(cursor, event);
}
-static void handle_constraint_commit(struct wl_listener *listener,
- void *data) {
- struct roots_cursor *cursor =
- wl_container_of(listener, cursor, constraint_commit);
- assert(cursor->active_constraint->surface == data);
- roots_cursor_handle_constraint_commit(cursor);
-}
-
static void seat_reset_device_mappings(struct roots_seat *seat,
struct wlr_input_device *device) {
struct wlr_cursor *cursor = seat->cursor->cursor;
@@ -456,7 +448,6 @@ static void roots_seat_init_cursor(struct roots_seat *seat) {
seat->cursor->focus_change.notify = handle_pointer_focus_change;
wl_list_init(&seat->cursor->constraint_commit.link);
- seat->cursor->constraint_commit.notify = handle_constraint_commit;
}
static void roots_drag_icon_handle_surface_commit(struct wl_listener *listener,