aboutsummaryrefslogtreecommitdiff
path: root/rootston/xdg_shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'rootston/xdg_shell.c')
-rw-r--r--rootston/xdg_shell.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/rootston/xdg_shell.c b/rootston/xdg_shell.c
index 2cf2081e..d3fc5372 100644
--- a/rootston/xdg_shell.c
+++ b/rootston/xdg_shell.c
@@ -72,8 +72,8 @@ static void popup_unconstrain(struct roots_xdg_popup *popup) {
int popup_lx, popup_ly;
wlr_xdg_popup_get_toplevel_coords(wlr_popup, wlr_popup->geometry.x,
wlr_popup->geometry.y, &popup_lx, &popup_ly);
- popup_lx += view->x;
- popup_ly += view->y;
+ popup_lx += view->box.x;
+ popup_ly += view->box.y;
anchor_lx += popup_lx;
anchor_ly += popup_ly;
@@ -95,8 +95,8 @@ static void popup_unconstrain(struct roots_xdg_popup *popup) {
// the output box expressed in the coordinate system of the toplevel parent
// of the popup
struct wlr_box output_toplevel_sx_box = {
- .x = output->lx - view->x,
- .y = output->ly - view->y,
+ .x = output->lx - view->box.x,
+ .y = output->ly - view->box.y,
.width = width,
.height = height
};
@@ -193,8 +193,8 @@ static void move_resize(struct roots_view *view, double x, double y,
return;
}
- bool update_x = x != view->x;
- bool update_y = y != view->y;
+ bool update_x = x != view->box.x;
+ bool update_y = y != view->box.y;
uint32_t constrained_width, constrained_height;
apply_size_constraints(surface, width, height, &constrained_width,
@@ -345,8 +345,8 @@ static void handle_surface_commit(struct wl_listener *listener, void *data) {
uint32_t pending_serial =
roots_surface->pending_move_resize_configure_serial;
if (pending_serial > 0 && pending_serial >= surface->configure_serial) {
- double x = view->x;
- double y = view->y;
+ double x = view->box.x;
+ double y = view->box.y;
if (view->pending_move_resize.update_x) {
x = view->pending_move_resize.x + view->pending_move_resize.width -
size.width;
@@ -377,8 +377,8 @@ static void handle_map(struct wl_listener *listener, void *data) {
struct wlr_box box;
get_size(view, &box);
- view->width = box.width;
- view->height = box.height;
+ view->box.width = box.width;
+ view->box.height = box.height;
view_map(view, view->xdg_surface->surface);
view_setup(view);