]> git.mdlowis.com Git - proto/labwc.git/commitdiff
Move action() prototype from labwc.h to action.h
authorJohan Malm <jgm323@gmail.com>
Wed, 5 Jan 2022 21:27:47 +0000 (21:27 +0000)
committerJohan Malm <jgm323@gmail.com>
Wed, 5 Jan 2022 21:27:47 +0000 (21:27 +0000)
include/action.h
include/labwc.h
src/cursor.c
src/keyboard.c

index 390355afc95fd3e3d2cf9df8c2ae8ce6b0733c11..7e2c667d9094ecf3b37b4b777597397b1bade728 100644 (file)
@@ -2,6 +2,9 @@
 #ifndef __LABWC_ACTION_H
 #define __LABWC_ACTION_H
 
+struct server;
+struct view;
+
 struct action {
        uint32_t type;
        char *arg;
@@ -10,4 +13,7 @@ struct action {
 
 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
index 8823f3efb9481fdc13ec1c1d1760513bd25e6c1a..9749223b4e2addcf15ab86b9a32afb5188dce96e 100644 (file)
@@ -500,9 +500,6 @@ void server_init(struct server *server);
 void server_start(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 */
 void osd_update(struct server *server);
 
index d9836beee1de797fb232a1fb364895e522aaf1ff..032087366e436b0882a83f4aba58e1bcb361559f 100644 (file)
@@ -5,6 +5,7 @@
 #include <sys/time.h>
 #include <time.h>
 #include <wlr/types/wlr_primary_selection.h>
+#include "action.h"
 #include "labwc.h"
 #include "menu/menu.h"
 #include "resistance.h"
index 72bcb8756abd0879bdbea67ca1b8b315ae949fc7..9b1bf84631927d3d646482eef42a4c45465c7f4f 100644 (file)
@@ -1,6 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-only
 #include <wlr/backend/multi.h>
 #include <wlr/backend/session.h>
+#include "action.h"
 #include "key-state.h"
 #include "labwc.h"