| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -10,12 +10,12 @@
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					#include "rootston/server.h"
 | 
					 | 
					 | 
					 | 
					#include "rootston/server.h"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					#include "rootston/input.h"
 | 
					 | 
					 | 
					 | 
					#include "rootston/input.h"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					/*static void get_input_bounds(struct roots_view *view, struct wlr_box *box) {
 | 
					 | 
					 | 
					 | 
					static void get_size(struct roots_view *view, struct wlr_box *box) {
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						assert(view->type == ROOTS_XDG_SHELL_V6_VIEW);
 | 
					 | 
					 | 
					 | 
						assert(view->type == ROOTS_XDG_SHELL_V6_VIEW);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						struct wlr_xdg_surface_v6 *surf = view->xdg_surface_v6;
 | 
					 | 
					 | 
					 | 
						struct wlr_xdg_surface_v6 *surf = view->xdg_surface_v6;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						// TODO: surf->geometry can be NULL
 | 
					 | 
					 | 
					 | 
						// TODO: surf->geometry can be NULL
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						memcpy(box, surf->geometry, sizeof(struct wlr_box));
 | 
					 | 
					 | 
					 | 
						memcpy(box, surf->geometry, sizeof(struct wlr_box));
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					}*/
 | 
					 | 
					 | 
					 | 
					}
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					static void activate(struct roots_view *view, bool active) {
 | 
					 | 
					 | 
					 | 
					static void activate(struct roots_view *view, bool active) {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						assert(view->type == ROOTS_XDG_SHELL_V6_VIEW);
 | 
					 | 
					 | 
					 | 
						assert(view->type == ROOTS_XDG_SHELL_V6_VIEW);
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -104,7 +104,7 @@ void handle_xdg_shell_v6_surface(struct wl_listener *listener, void *data) {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						view->xdg_surface_v6 = surface;
 | 
					 | 
					 | 
					 | 
						view->xdg_surface_v6 = surface;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						view->roots_xdg_surface_v6 = roots_surface;
 | 
					 | 
					 | 
					 | 
						view->roots_xdg_surface_v6 = roots_surface;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						view->wlr_surface = surface->surface;
 | 
					 | 
					 | 
					 | 
						view->wlr_surface = surface->surface;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						//view->get_input_bounds = get_input_bounds;
 | 
					 | 
					 | 
					 | 
						view->get_size = get_size;
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						view->activate = activate;
 | 
					 | 
					 | 
					 | 
						view->activate = activate;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						view->resize = resize;
 | 
					 | 
					 | 
					 | 
						view->resize = resize;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						view->desktop = desktop;
 | 
					 | 
					 | 
					 | 
						view->desktop = desktop;
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
 
 |