rootston: remove grab listeners
This commit is contained in:
		
							parent
							
								
									8f38b0504b
								
							
						
					
					
						commit
						bd8cdf1e9f
					
				|  | @ -53,12 +53,6 @@ struct roots_cursor { | ||||||
| 	struct wl_listener tool_axis; | 	struct wl_listener tool_axis; | ||||||
| 	struct wl_listener tool_tip; | 	struct wl_listener tool_tip; | ||||||
| 
 | 
 | ||||||
| 	struct wl_listener pointer_grab_begin; |  | ||||||
| 	struct wl_listener pointer_grab_end; |  | ||||||
| 
 |  | ||||||
| 	struct wl_listener touch_grab_begin; |  | ||||||
| 	struct wl_listener touch_grab_end; |  | ||||||
| 
 |  | ||||||
| 	struct wl_listener request_set_cursor; | 	struct wl_listener request_set_cursor; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | @ -96,16 +90,4 @@ void roots_cursor_handle_tool_tip(struct roots_cursor *cursor, | ||||||
| void roots_cursor_handle_request_set_cursor(struct roots_cursor *cursor, | void roots_cursor_handle_request_set_cursor(struct roots_cursor *cursor, | ||||||
| 		struct wlr_seat_pointer_request_set_cursor_event *event); | 		struct wlr_seat_pointer_request_set_cursor_event *event); | ||||||
| 
 | 
 | ||||||
| void roots_cursor_handle_pointer_grab_begin(struct roots_cursor *cursor, |  | ||||||
| 		struct wlr_seat_pointer_grab *grab); |  | ||||||
| 
 |  | ||||||
| void roots_cursor_handle_pointer_grab_end(struct roots_cursor *cursor, |  | ||||||
| 		struct wlr_seat_pointer_grab *grab); |  | ||||||
| 
 |  | ||||||
| void roots_cursor_handle_touch_grab_begin(struct roots_cursor *cursor, |  | ||||||
| 		struct wlr_seat_touch_grab *grab); |  | ||||||
| 
 |  | ||||||
| void roots_cursor_handle_touch_grab_end(struct roots_cursor *cursor, |  | ||||||
| 		struct wlr_seat_touch_grab *grab); |  | ||||||
| 
 |  | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
|  | @ -354,19 +354,3 @@ void roots_cursor_handle_request_set_cursor(struct roots_cursor *cursor, | ||||||
| 		event->hotspot_y); | 		event->hotspot_y); | ||||||
| 	cursor->cursor_client = event->seat_client->client; | 	cursor->cursor_client = event->seat_client->client; | ||||||
| } | } | ||||||
| 
 |  | ||||||
| void roots_cursor_handle_pointer_grab_begin(struct roots_cursor *cursor, |  | ||||||
| 		struct wlr_seat_pointer_grab *grab) { |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void roots_cursor_handle_pointer_grab_end(struct roots_cursor *cursor, |  | ||||||
| 		struct wlr_seat_pointer_grab *grab) { |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void roots_cursor_handle_touch_grab_begin(struct roots_cursor *cursor, |  | ||||||
| 		struct wlr_seat_touch_grab *grab) { |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void roots_cursor_handle_touch_grab_end(struct roots_cursor *cursor, |  | ||||||
| 		struct wlr_seat_touch_grab *grab) { |  | ||||||
| } |  | ||||||
|  |  | ||||||
|  | @ -96,38 +96,6 @@ static void handle_request_set_cursor(struct wl_listener *listener, | ||||||
| 	roots_cursor_handle_request_set_cursor(cursor, event); | 	roots_cursor_handle_request_set_cursor(cursor, event); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| static void handle_pointer_grab_begin(struct wl_listener *listener, |  | ||||||
| 		void *data) { |  | ||||||
| 	struct roots_cursor *cursor = |  | ||||||
| 		wl_container_of(listener, cursor, pointer_grab_begin); |  | ||||||
| 	struct wlr_seat_pointer_grab *grab = data; |  | ||||||
| 	roots_cursor_handle_pointer_grab_begin(cursor, grab); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| static void handle_pointer_grab_end(struct wl_listener *listener, |  | ||||||
| 		void *data) { |  | ||||||
| 	struct roots_cursor *cursor = |  | ||||||
| 		wl_container_of(listener, cursor, pointer_grab_end); |  | ||||||
| 	struct wlr_seat_pointer_grab *grab = data; |  | ||||||
| 	roots_cursor_handle_pointer_grab_end(cursor, grab); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| static void handle_touch_grab_begin(struct wl_listener *listener, |  | ||||||
| 		void *data) { |  | ||||||
| 	struct roots_cursor *cursor = |  | ||||||
| 		wl_container_of(listener, cursor, touch_grab_begin); |  | ||||||
| 	struct wlr_seat_touch_grab *grab = data; |  | ||||||
| 	roots_cursor_handle_touch_grab_begin(cursor, grab); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| static void handle_touch_grab_end(struct wl_listener *listener, |  | ||||||
| 		void *data) { |  | ||||||
| 	struct roots_cursor *cursor = |  | ||||||
| 		wl_container_of(listener, cursor, touch_grab_end); |  | ||||||
| 	struct wlr_seat_touch_grab *grab = data; |  | ||||||
| 	roots_cursor_handle_touch_grab_end(cursor, grab); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| static void seat_reset_device_mappings(struct roots_seat *seat, | static void seat_reset_device_mappings(struct roots_seat *seat, | ||||||
| 		struct wlr_input_device *device) { | 		struct wlr_input_device *device) { | ||||||
| 	struct wlr_cursor *cursor = seat->cursor->cursor; | 	struct wlr_cursor *cursor = seat->cursor->cursor; | ||||||
|  | @ -249,22 +217,6 @@ static void roots_seat_init_cursor(struct roots_seat *seat) { | ||||||
| 	wl_signal_add(&seat->seat->events.request_set_cursor, | 	wl_signal_add(&seat->seat->events.request_set_cursor, | ||||||
| 			&seat->cursor->request_set_cursor); | 			&seat->cursor->request_set_cursor); | ||||||
| 	seat->cursor->request_set_cursor.notify = handle_request_set_cursor; | 	seat->cursor->request_set_cursor.notify = handle_request_set_cursor; | ||||||
| 
 |  | ||||||
| 	wl_signal_add(&seat->seat->events.pointer_grab_begin, |  | ||||||
| 			&seat->cursor->pointer_grab_begin); |  | ||||||
| 	seat->cursor->pointer_grab_begin.notify = handle_pointer_grab_begin; |  | ||||||
| 
 |  | ||||||
| 	wl_signal_add(&seat->seat->events.pointer_grab_end, |  | ||||||
| 			&seat->cursor->pointer_grab_end); |  | ||||||
| 	seat->cursor->pointer_grab_end.notify = handle_pointer_grab_end; |  | ||||||
| 
 |  | ||||||
| 	wl_signal_add(&seat->seat->events.touch_grab_begin, |  | ||||||
| 			&seat->cursor->touch_grab_begin); |  | ||||||
| 	seat->cursor->touch_grab_begin.notify = handle_touch_grab_begin; |  | ||||||
| 
 |  | ||||||
| 	wl_signal_add(&seat->seat->events.touch_grab_end, |  | ||||||
| 			&seat->cursor->touch_grab_end); |  | ||||||
| 	seat->cursor->touch_grab_end.notify = handle_touch_grab_end; |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| struct roots_seat *roots_seat_create(struct roots_input *input, char *name) { | struct roots_seat *roots_seat_create(struct roots_input *input, char *name) { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue