mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	Merge branch 'master' into feature/data-device-selection
This commit is contained in:
		
						commit
						a87b60e31e
					
				
					 16 changed files with 255 additions and 60 deletions
				
			
		| 
						 | 
				
			
			@ -42,6 +42,7 @@ struct roots_config {
 | 
			
		|||
	struct wl_list devices;
 | 
			
		||||
	struct wl_list bindings;
 | 
			
		||||
	char *config_path;
 | 
			
		||||
	char *startup_cmd;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
struct roots_config *parse_args(int argc, char *argv[]);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -24,18 +24,12 @@ struct roots_keyboard {
 | 
			
		|||
struct roots_pointer {
 | 
			
		||||
	struct roots_input *input;
 | 
			
		||||
	struct wlr_input_device *device;
 | 
			
		||||
	// We don't listen to any pointer events directly - they go through
 | 
			
		||||
	// wlr_cursor
 | 
			
		||||
	struct wl_list link;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
struct roots_touch {
 | 
			
		||||
	struct roots_input *input;
 | 
			
		||||
	struct wlr_input_device *device;
 | 
			
		||||
	struct wl_listener down;
 | 
			
		||||
	struct wl_listener up;
 | 
			
		||||
	struct wl_listener motion;
 | 
			
		||||
	struct wl_listener cancel;
 | 
			
		||||
	struct wl_list link;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -82,6 +76,13 @@ struct roots_drag_icon {
 | 
			
		|||
	struct wl_listener surface_commit;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
struct roots_touch_point {
 | 
			
		||||
	struct roots_touch *device;
 | 
			
		||||
	int32_t slot;
 | 
			
		||||
	double x, y;
 | 
			
		||||
	struct wl_list link;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
struct roots_input {
 | 
			
		||||
	struct roots_config *config;
 | 
			
		||||
	struct roots_server *server;
 | 
			
		||||
| 
						 | 
				
			
			@ -117,10 +118,17 @@ struct roots_input {
 | 
			
		|||
	struct wl_listener cursor_motion_absolute;
 | 
			
		||||
	struct wl_listener cursor_button;
 | 
			
		||||
	struct wl_listener cursor_axis;
 | 
			
		||||
 | 
			
		||||
	struct wl_listener cursor_touch_down;
 | 
			
		||||
	struct wl_listener cursor_touch_up;
 | 
			
		||||
	struct wl_listener cursor_touch_motion;
 | 
			
		||||
 | 
			
		||||
	struct wl_listener cursor_tool_axis;
 | 
			
		||||
	struct wl_listener cursor_tool_tip;
 | 
			
		||||
 | 
			
		||||
	struct wl_listener pointer_grab_begin;
 | 
			
		||||
	struct wl_list touch_points;
 | 
			
		||||
 | 
			
		||||
	struct wl_listener pointer_grab_end;
 | 
			
		||||
 | 
			
		||||
	struct wl_listener request_set_cursor;
 | 
			
		||||
| 
						 | 
				
			
			@ -134,6 +142,8 @@ void pointer_add(struct wlr_input_device *device, struct roots_input *input);
 | 
			
		|||
void pointer_remove(struct wlr_input_device *device, struct roots_input *input);
 | 
			
		||||
void keyboard_add(struct wlr_input_device *device, struct roots_input *input);
 | 
			
		||||
void keyboard_remove(struct wlr_input_device *device, struct roots_input *input);
 | 
			
		||||
void touch_add(struct wlr_input_device *device, struct roots_input *input);
 | 
			
		||||
void touch_remove(struct wlr_input_device *device, struct roots_input *input);
 | 
			
		||||
void tablet_tool_add(struct wlr_input_device *device, struct roots_input *input);
 | 
			
		||||
void tablet_tool_remove(struct wlr_input_device *device, struct roots_input *input);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -73,12 +73,14 @@ struct roots_view {
 | 
			
		|||
	void (*get_size)(struct roots_view *view, struct wlr_box *box);
 | 
			
		||||
	void (*activate)(struct roots_view *view, bool active);
 | 
			
		||||
	void (*resize)(struct roots_view *view, uint32_t width, uint32_t height);
 | 
			
		||||
	void (*set_position)(struct roots_view *view, double x, double y);
 | 
			
		||||
	void (*close)(struct roots_view *view);
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
void view_get_size(struct roots_view *view, struct wlr_box *box);
 | 
			
		||||
void view_activate(struct roots_view *view, bool active);
 | 
			
		||||
void view_resize(struct roots_view *view, uint32_t width, uint32_t height);
 | 
			
		||||
void view_set_position(struct roots_view *view, double x, double y);
 | 
			
		||||
void view_close(struct roots_view *view);
 | 
			
		||||
bool view_center(struct roots_view *view);
 | 
			
		||||
void view_initialize(struct roots_view *view);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -56,6 +56,9 @@ struct wlr_output {
 | 
			
		|||
		struct wl_listener surface_destroy;
 | 
			
		||||
	} cursor;
 | 
			
		||||
 | 
			
		||||
	// the output position in layout space reported to clients
 | 
			
		||||
	int32_t lx, ly;
 | 
			
		||||
 | 
			
		||||
	void *data;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -66,6 +69,7 @@ bool wlr_output_set_mode(struct wlr_output *output,
 | 
			
		|||
	struct wlr_output_mode *mode);
 | 
			
		||||
void wlr_output_transform(struct wlr_output *output,
 | 
			
		||||
	enum wl_output_transform transform);
 | 
			
		||||
void wlr_output_set_position(struct wlr_output *output, int32_t lx, int32_t ly);
 | 
			
		||||
bool wlr_output_set_cursor(struct wlr_output *output,
 | 
			
		||||
	const uint8_t *buf, int32_t stride, uint32_t width, uint32_t height,
 | 
			
		||||
	int32_t hotspot_x, int32_t hotspot_y);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue