mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
Refactor view_move_resize()
This commit is contained in:
parent
57588aa173
commit
e0770a5672
5 changed files with 8 additions and 15 deletions
10
src/view.c
10
src/view.c
|
|
@ -1,15 +1,9 @@
|
|||
#include "labwc.h"
|
||||
|
||||
void
|
||||
view_resize(struct view *view, struct wlr_box geo)
|
||||
view_move_resize(struct view *view, struct wlr_box geo)
|
||||
{
|
||||
struct wlr_box box = {
|
||||
.x = view->x,
|
||||
.y = view->y,
|
||||
.width = geo.width,
|
||||
.height = geo.height,
|
||||
};
|
||||
view->impl->configure(view, box);
|
||||
view->impl->configure(view, geo);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue