mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-14 17:25:59 +01:00
wlr_xdg_shell: (style) add break to final switch case
This commit is contained in:
parent
db9c2c11f6
commit
6ae96c4832
1 changed files with 4 additions and 0 deletions
|
@ -420,6 +420,7 @@ static struct wlr_box xdg_positioner_get_geometry(
|
||||||
default:
|
default:
|
||||||
geometry.y +=
|
geometry.y +=
|
||||||
positioner->anchor_rect.y + positioner->anchor_rect.height / 2;
|
positioner->anchor_rect.y + positioner->anchor_rect.height / 2;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (positioner->anchor) {
|
switch (positioner->anchor) {
|
||||||
|
@ -436,6 +437,7 @@ static struct wlr_box xdg_positioner_get_geometry(
|
||||||
default:
|
default:
|
||||||
geometry.x +=
|
geometry.x +=
|
||||||
positioner->anchor_rect.x + positioner->anchor_rect.width / 2;
|
positioner->anchor_rect.x + positioner->anchor_rect.width / 2;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (positioner->gravity) {
|
switch (positioner->gravity) {
|
||||||
|
@ -451,6 +453,7 @@ static struct wlr_box xdg_positioner_get_geometry(
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
geometry.y -= geometry.height / 2;
|
geometry.y -= geometry.height / 2;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (positioner->gravity) {
|
switch (positioner->gravity) {
|
||||||
|
@ -466,6 +469,7 @@ static struct wlr_box xdg_positioner_get_geometry(
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
geometry.x -= geometry.width / 2;
|
geometry.x -= geometry.width / 2;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (positioner->constraint_adjustment ==
|
if (positioner->constraint_adjustment ==
|
||||||
|
|
Loading…
Reference in a new issue