mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	rootston-desktop: use window geometry for input bounds
This commit is contained in:
		
							parent
							
								
									e003296c23
								
							
						
					
					
						commit
						f9379f9a46
					
				
					 1 changed files with 9 additions and 0 deletions
				
			
		| 
						 | 
					@ -40,6 +40,15 @@ void view_get_input_bounds(struct roots_view *view, struct wlr_box *box) {
 | 
				
			||||||
		view->get_input_bounds(view, box);
 | 
							view->get_input_bounds(view, box);
 | 
				
			||||||
		return;
 | 
							return;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if (view->type == ROOTS_XDG_SHELL_V6_VIEW) {
 | 
				
			||||||
 | 
							box->x = view->xdg_surface_v6->geometry->x;
 | 
				
			||||||
 | 
							box->y = view->xdg_surface_v6->geometry->y;
 | 
				
			||||||
 | 
							box->width = view->xdg_surface_v6->geometry->width;
 | 
				
			||||||
 | 
							box->height = view->xdg_surface_v6->geometry->height;
 | 
				
			||||||
 | 
							return;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	box->x = box->y = 0;
 | 
						box->x = box->y = 0;
 | 
				
			||||||
	box->width = view->wlr_surface->current->width;
 | 
						box->width = view->wlr_surface->current->width;
 | 
				
			||||||
	box->height = view->wlr_surface->current->height;
 | 
						box->height = view->wlr_surface->current->height;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue