Move action() prototype from labwc.h to action.h

This commit is contained in:
Johan Malm 2022-01-05 21:27:47 +00:00
parent 3bd65c3a20
commit 3c92cc4dd0
4 changed files with 8 additions and 3 deletions

View file

@ -2,6 +2,9 @@
#ifndef __LABWC_ACTION_H #ifndef __LABWC_ACTION_H
#define __LABWC_ACTION_H #define __LABWC_ACTION_H
struct server;
struct view;
struct action { struct action {
uint32_t type; uint32_t type;
char *arg; char *arg;
@ -10,4 +13,7 @@ struct action {
struct action *action_create(const char *action_name); struct action *action_create(const char *action_name);
void action(struct view *activator, struct server *server,
struct wl_list *actions, uint32_t resize_edges);
#endif #endif

View file

@ -500,9 +500,6 @@ void server_init(struct server *server);
void server_start(struct server *server); void server_start(struct server *server);
void server_finish(struct server *server); void server_finish(struct server *server);
void action(struct view *activator, struct server *server,
struct wl_list *actions, uint32_t resize_edges);
/* update onscreen display 'alt-tab' texture */ /* update onscreen display 'alt-tab' texture */
void osd_update(struct server *server); void osd_update(struct server *server);

View file

@ -5,6 +5,7 @@
#include <sys/time.h> #include <sys/time.h>
#include <time.h> #include <time.h>
#include <wlr/types/wlr_primary_selection.h> #include <wlr/types/wlr_primary_selection.h>
#include "action.h"
#include "labwc.h" #include "labwc.h"
#include "menu/menu.h" #include "menu/menu.h"
#include "resistance.h" #include "resistance.h"

View file

@ -1,6 +1,7 @@
// SPDX-License-Identifier: GPL-2.0-only // SPDX-License-Identifier: GPL-2.0-only
#include <wlr/backend/multi.h> #include <wlr/backend/multi.h>
#include <wlr/backend/session.h> #include <wlr/backend/session.h>
#include "action.h"
#include "key-state.h" #include "key-state.h"
#include "labwc.h" #include "labwc.h"