mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	Enable presentation time
This commit is contained in:
		
							parent
							
								
									cec0c5cee6
								
							
						
					
					
						commit
						c0f369aafb
					
				
					 1 changed files with 9 additions and 0 deletions
				
			
		| 
						 | 
					@ -7,6 +7,7 @@
 | 
				
			||||||
#include <wlr/types/wlr_export_dmabuf_v1.h>
 | 
					#include <wlr/types/wlr_export_dmabuf_v1.h>
 | 
				
			||||||
#include <wlr/types/wlr_gamma_control_v1.h>
 | 
					#include <wlr/types/wlr_gamma_control_v1.h>
 | 
				
			||||||
#include <wlr/types/wlr_input_inhibitor.h>
 | 
					#include <wlr/types/wlr_input_inhibitor.h>
 | 
				
			||||||
 | 
					#include <wlr/types/wlr_presentation_time.h>
 | 
				
			||||||
#include <wlr/types/wlr_primary_selection_v1.h>
 | 
					#include <wlr/types/wlr_primary_selection_v1.h>
 | 
				
			||||||
#include <wlr/types/wlr_screencopy_v1.h>
 | 
					#include <wlr/types/wlr_screencopy_v1.h>
 | 
				
			||||||
#include <wlr/types/wlr_viewporter.h>
 | 
					#include <wlr/types/wlr_viewporter.h>
 | 
				
			||||||
| 
						 | 
					@ -299,6 +300,14 @@ server_init(struct server *server)
 | 
				
			||||||
				  WLR_SERVER_DECORATION_MANAGER_MODE_SERVER :
 | 
									  WLR_SERVER_DECORATION_MANAGER_MODE_SERVER :
 | 
				
			||||||
				  WLR_SERVER_DECORATION_MANAGER_MODE_CLIENT);
 | 
									  WLR_SERVER_DECORATION_MANAGER_MODE_CLIENT);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						struct wlr_presentation *presentation =
 | 
				
			||||||
 | 
							wlr_presentation_create(server->wl_display, server->backend);
 | 
				
			||||||
 | 
						if (!presentation) {
 | 
				
			||||||
 | 
							wlr_log(WLR_ERROR, "unable to create presentation interface");
 | 
				
			||||||
 | 
							exit(EXIT_FAILURE);
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						wlr_scene_set_presentation(server->scene, presentation);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	wlr_export_dmabuf_manager_v1_create(server->wl_display);
 | 
						wlr_export_dmabuf_manager_v1_create(server->wl_display);
 | 
				
			||||||
	wlr_screencopy_manager_v1_create(server->wl_display);
 | 
						wlr_screencopy_manager_v1_create(server->wl_display);
 | 
				
			||||||
	wlr_data_control_manager_v1_create(server->wl_display);
 | 
						wlr_data_control_manager_v1_create(server->wl_display);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue