Move types to other header

This commit is contained in:
Alex Kotov 2022-09-10 00:51:13 +04:00
parent 158700c6d7
commit 7861f0ccd6
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
2 changed files with 22 additions and 22 deletions

View file

@ -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);

View file

@ -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;