Try to only call wlr_xdg_surface_get_geometry() in .commit and .map
!rc.client_side_decorations) {
box = deco_max_extents(view);
} else {
- box = view_get_surface_geometry(view);
- box.x += view->x;
- box.y += view->y;
+ box.x = view->x;
+ box.y = view->y;
+ box.width = view->w;
+ box.height = view->h;
}
float cycle_color[] = { 0.0, 0.0, 0.0, 0.2 };
wlr_render_rect(output->server->renderer, &box, cycle_color,