mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
rootston: view set position
This commit is contained in:
parent
0536ea3c47
commit
169bc216ed
5 changed files with 58 additions and 23 deletions
|
|
@ -46,6 +46,16 @@ void view_get_size(struct roots_view *view, struct wlr_box *box) {
|
|||
box->height = view->wlr_surface->current->height;
|
||||
}
|
||||
|
||||
void view_set_position(struct roots_view *view, double x, double y) {
|
||||
if (view->set_position) {
|
||||
view->set_position(view, x, y);
|
||||
return;
|
||||
}
|
||||
|
||||
view->x = x;
|
||||
view->y = y;
|
||||
}
|
||||
|
||||
void view_activate(struct roots_view *view, bool activate) {
|
||||
if (view->activate) {
|
||||
view->activate(view, activate);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue