Merge pull request #847 from bpinto/bugfix/compilation-without-xwayland-support

rootston: fix compilation without XWayland support
This commit is contained in:
Drew DeVault 2018-04-07 19:20:25 -04:00 committed by GitHub
commit 5f48c7fddd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,
view_sx, view_sy, &_sx, &_sy);
break;
#ifdef WLR_HAS_XWAYLAND
case ROOTS_XWAYLAND_VIEW:
_surface = wlr_surface_surface_at(view->wlr_surface,
view_sx, view_sy, &_sx, &_sy);
break;
#endif
}
if (_surface != NULL) {
*sx = _sx;