From 7861f0ccd6b10ce6071b70e238907af1cb4b3a3c Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Sat, 10 Sep 2022 00:51:13 +0400 Subject: [PATCH] Move types to other header --- src/dwm/spaghetti/interaction.h | 22 ++++++++++++++++++++++ src/dwm/types.h | 22 ---------------------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/src/dwm/spaghetti/interaction.h b/src/dwm/spaghetti/interaction.h index a69414a..102363d 100644 --- a/src/dwm/spaghetti/interaction.h +++ b/src/dwm/spaghetti/interaction.h @@ -1,6 +1,28 @@ #ifndef _DWM_INTERACTION_H #define _DWM_INTERACTION_H +typedef union { + int i; + unsigned int ui; + float f; + const void *v; +} Arg; + +typedef struct { + unsigned int click; + unsigned int mask; + unsigned int button; + void (*func)(const Arg *arg); + const Arg arg; +} Button; + +typedef struct { + unsigned int mod; + KeySym keysym; + void (*func)(const Arg *); + const Arg arg; +} Key; + static void configborder(const Arg *arg); static void configgap(const Arg *arg); static void dorestart(const Arg *arg); diff --git a/src/dwm/types.h b/src/dwm/types.h index 32931c5..6ad4c69 100644 --- a/src/dwm/types.h +++ b/src/dwm/types.h @@ -8,21 +8,6 @@ enum { ClkClientWin, ClkRootWin, ClkLast }; /* clicks */ typedef struct Monitor Monitor; typedef struct Client Client; -typedef union { - int i; - unsigned int ui; - float f; - const void *v; -} Arg; - -typedef struct { - unsigned int click; - unsigned int mask; - unsigned int button; - void (*func)(const Arg *arg); - const Arg arg; -} Button; - struct Client { struct ClientState state; struct ClientSizeHints size_hints; @@ -33,13 +18,6 @@ struct Client { Window x_window; }; -typedef struct { - unsigned int mod; - KeySym keysym; - void (*func)(const Arg *); - const Arg arg; -} Key; - typedef struct { void (*arrange)(Monitor *); } Layout;