mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	server: create tablet-v2-manager
This commit is contained in:
		
							parent
							
								
									f0a12bb15d
								
							
						
					
					
						commit
						9c219564be
					
				
					 2 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
					@ -42,6 +42,7 @@
 | 
				
			||||||
#include <wlr/types/wlr_tearing_control_v1.h>
 | 
					#include <wlr/types/wlr_tearing_control_v1.h>
 | 
				
			||||||
#include <wlr/types/wlr_text_input_v3.h>
 | 
					#include <wlr/types/wlr_text_input_v3.h>
 | 
				
			||||||
#include <wlr/types/wlr_input_method_v2.h>
 | 
					#include <wlr/types/wlr_input_method_v2.h>
 | 
				
			||||||
 | 
					#include <wlr/types/wlr_tablet_v2.h>
 | 
				
			||||||
#include <wlr/util/log.h>
 | 
					#include <wlr/util/log.h>
 | 
				
			||||||
#include "config/keybind.h"
 | 
					#include "config/keybind.h"
 | 
				
			||||||
#include "config/rcxml.h"
 | 
					#include "config/rcxml.h"
 | 
				
			||||||
| 
						 | 
					@ -333,6 +334,8 @@ struct server {
 | 
				
			||||||
	struct wlr_input_method_manager_v2 *input_method_manager;
 | 
						struct wlr_input_method_manager_v2 *input_method_manager;
 | 
				
			||||||
	struct wlr_text_input_manager_v3 *text_input_manager;
 | 
						struct wlr_text_input_manager_v3 *text_input_manager;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						struct wlr_tablet_manager_v2 *tablet_manager;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* Set when in cycle (alt-tab) mode */
 | 
						/* Set when in cycle (alt-tab) mode */
 | 
				
			||||||
	struct osd_state {
 | 
						struct osd_state {
 | 
				
			||||||
		struct view *cycle_view;
 | 
							struct view *cycle_view;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -16,6 +16,7 @@
 | 
				
			||||||
#include <wlr/types/wlr_screencopy_v1.h>
 | 
					#include <wlr/types/wlr_screencopy_v1.h>
 | 
				
			||||||
#include <wlr/types/wlr_single_pixel_buffer_v1.h>
 | 
					#include <wlr/types/wlr_single_pixel_buffer_v1.h>
 | 
				
			||||||
#include <wlr/types/wlr_viewporter.h>
 | 
					#include <wlr/types/wlr_viewporter.h>
 | 
				
			||||||
 | 
					#include <wlr/types/wlr_tablet_v2.h>
 | 
				
			||||||
#if HAVE_XWAYLAND
 | 
					#if HAVE_XWAYLAND
 | 
				
			||||||
#include <wlr/xwayland.h>
 | 
					#include <wlr/xwayland.h>
 | 
				
			||||||
#include "xwayland-shell-v1-protocol.h"
 | 
					#include "xwayland-shell-v1-protocol.h"
 | 
				
			||||||
| 
						 | 
					@ -550,6 +551,8 @@ server_init(struct server *server)
 | 
				
			||||||
	server->tearing_new_object.notify = new_tearing_hint;
 | 
						server->tearing_new_object.notify = new_tearing_hint;
 | 
				
			||||||
	wl_signal_add(&server->tearing_control->events.new_object, &server->tearing_new_object);
 | 
						wl_signal_add(&server->tearing_control->events.new_object, &server->tearing_new_object);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						server->tablet_manager = wlr_tablet_v2_create(server->wl_display);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	layers_init(server);
 | 
						layers_init(server);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if HAVE_XWAYLAND
 | 
					#if HAVE_XWAYLAND
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue