mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	Merge pull request #847 from bpinto/bugfix/compilation-without-xwayland-support
rootston: fix compilation without XWayland support
This commit is contained in:
		
						commit
						5f48c7fddd
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -593,10 +593,12 @@ static bool view_at(struct roots_view *view, double lx, double ly,
 | 
				
			||||||
		_surface = wlr_wl_shell_surface_surface_at(view->wl_shell_surface,
 | 
							_surface = wlr_wl_shell_surface_surface_at(view->wl_shell_surface,
 | 
				
			||||||
			view_sx, view_sy, &_sx, &_sy);
 | 
								view_sx, view_sy, &_sx, &_sy);
 | 
				
			||||||
		break;
 | 
							break;
 | 
				
			||||||
 | 
					#ifdef WLR_HAS_XWAYLAND
 | 
				
			||||||
	case ROOTS_XWAYLAND_VIEW:
 | 
						case ROOTS_XWAYLAND_VIEW:
 | 
				
			||||||
		_surface = wlr_surface_surface_at(view->wlr_surface,
 | 
							_surface = wlr_surface_surface_at(view->wlr_surface,
 | 
				
			||||||
			view_sx, view_sy, &_sx, &_sy);
 | 
								view_sx, view_sy, &_sx, &_sy);
 | 
				
			||||||
		break;
 | 
							break;
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	if (_surface != NULL) {
 | 
						if (_surface != NULL) {
 | 
				
			||||||
		*sx = _sx;
 | 
							*sx = _sx;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue