mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
src: put designated initializers in member order
Out-of-order named initializers are allowed in C (unlike in C++) but are still surprising - I don't see a reason not to put them in order.
This commit is contained in:
parent
a802d6b20a
commit
4afbfac528
4 changed files with 16 additions and 16 deletions
|
|
@ -224,13 +224,13 @@ update_popup_position(struct input_method_popup *popup)
|
|||
.anchor_rect = cursor_rect,
|
||||
.anchor = XDG_POSITIONER_ANCHOR_BOTTOM_LEFT,
|
||||
.gravity = XDG_POSITIONER_GRAVITY_BOTTOM_RIGHT,
|
||||
.constraint_adjustment =
|
||||
XDG_POSITIONER_CONSTRAINT_ADJUSTMENT_FLIP_Y
|
||||
| XDG_POSITIONER_CONSTRAINT_ADJUSTMENT_SLIDE_X,
|
||||
.size = {
|
||||
.width = popup->popup_surface->surface->current.width,
|
||||
.height = popup->popup_surface->surface->current.height,
|
||||
},
|
||||
.constraint_adjustment =
|
||||
XDG_POSITIONER_CONSTRAINT_ADJUSTMENT_FLIP_Y
|
||||
| XDG_POSITIONER_CONSTRAINT_ADJUSTMENT_SLIDE_X,
|
||||
};
|
||||
|
||||
struct wlr_box popup_box;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue