}
struct border border = view_border(view);
struct wlr_box usable = output_usable_area_in_layout_coords(output);
+ if (usable.height == output->wlr_output->height && output->wlr_output->scale != 1) {
+ usable.height /= output->wlr_output->scale;
+ }
+ if (usable.width == output->wlr_output->width && output->wlr_output->scale != 1) {
+ usable.width /= output->wlr_output->scale;
+ }
int x = 0, y = 0;
if (!strcasecmp(direction, "left")) {
{
struct border border = view_border(view);
struct wlr_box usable = output_usable_area_in_layout_coords(output);
+ if (usable.height == output->wlr_output->height && output->wlr_output->scale != 1) {
+ usable.height /= output->wlr_output->scale;
+ }
+ if (usable.width == output->wlr_output->width && output->wlr_output->scale != 1) {
+ usable.width /= output->wlr_output->scale;
+ }
int x_offset = edge == VIEW_EDGE_RIGHT
? (usable.width + rc.gap) / 2 : rc.gap;