mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 15:05:59 +01:00
parent
4b3efc73c5
commit
cb7dd1ac6e
1 changed files with 8 additions and 7 deletions
|
@ -1274,16 +1274,16 @@ void CHyprRenderer::arrangeLayerArray(CMonitor* pMonitor, const std::vector<std:
|
||||||
|
|
||||||
const auto PLAYER = ls->layerSurface;
|
const auto PLAYER = ls->layerSurface;
|
||||||
const auto PSTATE = &PLAYER->current;
|
const auto PSTATE = &PLAYER->current;
|
||||||
if (exclusiveZone != (PSTATE->exclusive_zone > 0)) {
|
if (exclusiveZone != (PSTATE->exclusive_zone > 0))
|
||||||
continue;
|
continue;
|
||||||
}
|
|
||||||
|
|
||||||
wlr_box bounds;
|
wlr_box bounds;
|
||||||
if (PSTATE->exclusive_zone == -1) {
|
if (PSTATE->exclusive_zone == -1)
|
||||||
bounds = full_area;
|
bounds = full_area;
|
||||||
} else {
|
else
|
||||||
bounds = *usableArea;
|
bounds = *usableArea;
|
||||||
}
|
|
||||||
|
const Vector2D OLDSIZE = {ls->geometry.width, ls->geometry.height};
|
||||||
|
|
||||||
wlr_box box = {.width = PSTATE->desired_width, .height = PSTATE->desired_height};
|
wlr_box box = {.width = PSTATE->desired_width, .height = PSTATE->desired_height};
|
||||||
// Horizontal axis
|
// Horizontal axis
|
||||||
|
@ -1342,6 +1342,7 @@ void CHyprRenderer::arrangeLayerArray(CMonitor* pMonitor, const std::vector<std:
|
||||||
|
|
||||||
apply_exclusive(usableArea, PSTATE->anchor, PSTATE->exclusive_zone, PSTATE->margin.top, PSTATE->margin.right, PSTATE->margin.bottom, PSTATE->margin.left);
|
apply_exclusive(usableArea, PSTATE->anchor, PSTATE->exclusive_zone, PSTATE->margin.top, PSTATE->margin.right, PSTATE->margin.bottom, PSTATE->margin.left);
|
||||||
|
|
||||||
|
if (Vector2D{box.width, box.height} != OLDSIZE)
|
||||||
wlr_layer_surface_v1_configure(ls->layerSurface, box.width, box.height);
|
wlr_layer_surface_v1_configure(ls->layerSurface, box.width, box.height);
|
||||||
|
|
||||||
Debug::log(LOG, "LayerSurface {:x} arranged: x: {} y: {} w: {} h: {} with margins: t: {} l: {} r: {} b: {}", (uintptr_t)&ls, box.x, box.y, box.width, box.height,
|
Debug::log(LOG, "LayerSurface {:x} arranged: x: {} y: {} w: {} h: {} with margins: t: {} l: {} r: {} b: {}", (uintptr_t)&ls, box.x, box.y, box.width, box.height,
|
||||||
|
|
Loading…
Reference in a new issue