[wip] convert to wlr_fbox

This commit is contained in:
Consolatis 2022-07-04 01:09:13 +02:00
parent 7585c7c26a
commit aa6e80d9a1
6 changed files with 22 additions and 22 deletions

View file

@ -5,7 +5,7 @@
struct view;
struct server;
struct wl_list;
struct wlr_box;
struct wlr_fbox;
struct action {
struct wl_list link; /* struct keybinding.actions,
@ -18,7 +18,7 @@ struct action {
struct action *action_create(const char *action_name);
void action_arg_add_str(struct action *action, char *key, const char *value);
struct wlr_box *action_arg_add_box(struct action *action, char *name);
struct wlr_fbox *action_arg_add_fbox(struct action *action, char *name);
void actions_run(struct view *activator, struct server *server,
struct wl_list *actions, uint32_t resize_edges);
void action_list_free(struct wl_list *action_list);

View file

@ -435,7 +435,7 @@ void view_adjust_for_layout_change(struct view *view);
void view_discover_output(struct view *view);
void view_move_to_edge(struct view *view, const char *direction);
void view_snap_to_edge(struct view *view, const char *direction);
void view_rel_move_resize_to(struct view *view, struct wlr_box *rel_box);
void view_rel_move_resize_to(struct view *view, struct wlr_fbox *rel_box);
const char *view_get_string_prop(struct view *view, const char *prop);
void view_update_title(struct view *view);

View file

@ -7,7 +7,7 @@
enum action_arg_type {
LAB_ACTION_ARG_STR = 0,
LAB_ACTION_ARG_BOX,
LAB_ACTION_ARG_FBOX,
};
struct action_arg {
@ -22,9 +22,9 @@ struct action_arg_str {
char *value;
};
struct action_arg_box {
struct action_arg_fbox {
struct action_arg base;
struct wlr_box value;
struct wlr_fbox value;
};
#endif /* __LABWC_PRIVATE_ACTION_H */