mirror of
				https://gitlab.freedesktop.org/wayland/wayland.git
				synced 2025-11-03 09:01:42 -05:00 
			
		
		
		
	Update keyboard focus handler signatures
This commit is contained in:
		
							parent
							
								
									2c28aa5981
								
							
						
					
					
						commit
						43788b13df
					
				
					 4 changed files with 6 additions and 5 deletions
				
			
		| 
						 | 
					@ -309,7 +309,7 @@ resize_handler(struct window *window, void *data)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void
 | 
					static void
 | 
				
			||||||
keyboard_focus_handler(struct window *window,
 | 
					keyboard_focus_handler(struct window *window,
 | 
				
			||||||
		       struct wl_input_device *device, void *data)
 | 
							       struct input *device, void *data)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	struct gears *gears = data;
 | 
						struct gears *gears = data;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -190,7 +190,7 @@ redraw_handler(struct window *window, void *data)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void
 | 
					static void
 | 
				
			||||||
keyboard_focus_handler(struct window *window,
 | 
					keyboard_focus_handler(struct window *window,
 | 
				
			||||||
		       struct wl_input_device *device, void *data)
 | 
							       struct input *device, void *data)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	struct image *image = data;
 | 
						struct image *image = data;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -224,7 +224,8 @@ image_create(struct display *display, uint32_t key, const char *filename)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	window_set_user_data(image->window, image);
 | 
						window_set_user_data(image->window, image);
 | 
				
			||||||
	window_set_redraw_handler(image->window, redraw_handler);
 | 
						window_set_redraw_handler(image->window, redraw_handler);
 | 
				
			||||||
	window_set_keyboard_focus_handler(image->window, keyboard_focus_handler);
 | 
						window_set_keyboard_focus_handler(image->window,
 | 
				
			||||||
 | 
										  keyboard_focus_handler);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	image_draw(image);
 | 
						image_draw(image);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -441,7 +441,7 @@ key_handler(struct window *window, uint32_t key, uint32_t sym,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void
 | 
					static void
 | 
				
			||||||
keyboard_focus_handler(struct window *window,
 | 
					keyboard_focus_handler(struct window *window,
 | 
				
			||||||
		       struct wl_input_device *device, void *data)
 | 
							       struct input *device, void *data)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	struct terminal *terminal = data;
 | 
						struct terminal *terminal = data;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -148,7 +148,7 @@ key_handler(struct window *window, uint32_t key, uint32_t unicode,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void
 | 
					static void
 | 
				
			||||||
keyboard_focus_handler(struct window *window,
 | 
					keyboard_focus_handler(struct window *window,
 | 
				
			||||||
		       struct wl_input_device *device, void *data)
 | 
							       struct input *device, void *data)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	struct view *view = data;
 | 
						struct view *view = data;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue