mirror of
https://github.com/labwc/labwc.git
synced 2026-02-23 01:40:18 -05:00
view: add 'struct border margin'
Simplify various view interfaces as a result
This commit is contained in:
parent
5a77c84fc8
commit
090e78b85a
9 changed files with 91 additions and 101 deletions
|
|
@ -153,11 +153,8 @@ static bool _view_at(struct view *view, double lx, double ly,
|
|||
view->xdg_surface, view_sx, view_sy, &_sx, &_sy);
|
||||
break;
|
||||
case LAB_XWAYLAND_VIEW:
|
||||
if (!view->xwayland_surface->surface)
|
||||
return false;
|
||||
_surface =
|
||||
wlr_surface_surface_at(view->xwayland_surface->surface,
|
||||
view_sx, view_sy, &_sx, &_sy);
|
||||
_surface = wlr_surface_surface_at(view->surface, view_sx,
|
||||
view_sy, &_sx, &_sy);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue