Move types to other header
This commit is contained in:
parent
158700c6d7
commit
7861f0ccd6
|
@ -1,6 +1,28 @@
|
||||||
#ifndef _DWM_INTERACTION_H
|
#ifndef _DWM_INTERACTION_H
|
||||||
#define _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 configborder(const Arg *arg);
|
||||||
static void configgap(const Arg *arg);
|
static void configgap(const Arg *arg);
|
||||||
static void dorestart(const Arg *arg);
|
static void dorestart(const Arg *arg);
|
||||||
|
|
|
@ -8,21 +8,6 @@ enum { ClkClientWin, ClkRootWin, ClkLast }; /* clicks */
|
||||||
typedef struct Monitor Monitor;
|
typedef struct Monitor Monitor;
|
||||||
typedef struct Client Client;
|
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 Client {
|
||||||
struct ClientState state;
|
struct ClientState state;
|
||||||
struct ClientSizeHints size_hints;
|
struct ClientSizeHints size_hints;
|
||||||
|
@ -33,13 +18,6 @@ struct Client {
|
||||||
Window x_window;
|
Window x_window;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct {
|
|
||||||
unsigned int mod;
|
|
||||||
KeySym keysym;
|
|
||||||
void (*func)(const Arg *);
|
|
||||||
const Arg arg;
|
|
||||||
} Key;
|
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
void (*arrange)(Monitor *);
|
void (*arrange)(Monitor *);
|
||||||
} Layout;
|
} Layout;
|
||||||
|
|
Loading…
Reference in New Issue