Move types to other header
This commit is contained in:
parent
158700c6d7
commit
7861f0ccd6
2 changed files with 22 additions and 22 deletions
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue