Fix: Calling wlc_xdg_positioner_protocol_set_gravity actually sets anchor
@@ -88,10 +88,10 @@ wlc_xdg_positioner_protocol_set_gravity(struct wl_client *client, struct wl_reso
}
positioner->gravity = WLC_BIT_GRAVITY_NONE;
- if (gravity & ZXDG_POSITIONER_V6_GRAVITY_TOP) positioner->anchor |= WLC_BIT_GRAVITY_TOP;
- if (gravity & ZXDG_POSITIONER_V6_GRAVITY_BOTTOM) positioner->anchor |= WLC_BIT_GRAVITY_BOTTOM;
- if (gravity & ZXDG_POSITIONER_V6_GRAVITY_LEFT) positioner->anchor |= WLC_BIT_GRAVITY_LEFT;
- if (gravity & ZXDG_POSITIONER_V6_GRAVITY_RIGHT) positioner->anchor |= WLC_BIT_GRAVITY_RIGHT;
+ if (gravity & ZXDG_POSITIONER_V6_GRAVITY_TOP) positioner->gravity |= WLC_BIT_GRAVITY_TOP;
+ if (gravity & ZXDG_POSITIONER_V6_GRAVITY_BOTTOM) positioner->gravity |= WLC_BIT_GRAVITY_BOTTOM;
+ if (gravity & ZXDG_POSITIONER_V6_GRAVITY_LEFT) positioner->gravity |= WLC_BIT_GRAVITY_LEFT;
+ if (gravity & ZXDG_POSITIONER_V6_GRAVITY_RIGHT) positioner->gravity |= WLC_BIT_GRAVITY_RIGHT;
}
static void
