mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	layer shell: advertise version 3
This should have been done in 45c0877 but was overlooked unfortunately.
			
			
This commit is contained in:
		
							parent
							
								
									07d75c99db
								
							
						
					
					
						commit
						87e216b740
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
					@ -11,6 +11,8 @@
 | 
				
			||||||
#include "util/signal.h"
 | 
					#include "util/signal.h"
 | 
				
			||||||
#include "wlr-layer-shell-unstable-v1-protocol.h"
 | 
					#include "wlr-layer-shell-unstable-v1-protocol.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#define LAYER_SHELL_VERSION 3
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void resource_handle_destroy(struct wl_client *client,
 | 
					static void resource_handle_destroy(struct wl_client *client,
 | 
				
			||||||
		struct wl_resource *resource) {
 | 
							struct wl_resource *resource) {
 | 
				
			||||||
	wl_resource_destroy(resource);
 | 
						wl_resource_destroy(resource);
 | 
				
			||||||
| 
						 | 
					@ -498,7 +500,8 @@ struct wlr_layer_shell_v1 *wlr_layer_shell_v1_create(struct wl_display *display)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	struct wl_global *global = wl_global_create(display,
 | 
						struct wl_global *global = wl_global_create(display,
 | 
				
			||||||
		&zwlr_layer_shell_v1_interface, 2, layer_shell, layer_shell_bind);
 | 
							&zwlr_layer_shell_v1_interface, LAYER_SHELL_VERSION,
 | 
				
			||||||
 | 
							layer_shell, layer_shell_bind);
 | 
				
			||||||
	if (!global) {
 | 
						if (!global) {
 | 
				
			||||||
		free(layer_shell);
 | 
							free(layer_shell);
 | 
				
			||||||
		return NULL;
 | 
							return NULL;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue