rootston: fix view_at

This commit is contained in:
emersion 2018-04-04 17:16:35 -04:00
parent d16127b3cb
commit 1a8b24bdd2
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
3 changed files with 10 additions and 9 deletions

View file

@ -608,7 +608,7 @@ static bool view_at(struct roots_view *view, double lx, double ly,
double _sx, _sy;
struct wlr_surface *_surface = wlr_surface_surface_at(view->wlr_surface,
view_sx, view_sy, &_sx, &_sy);
if (surface != NULL) {
if (_surface != NULL) {
*sx = _sx;
*sy = _sy;
*surface = _surface;