Xinqi Bao's Git
projects
/
dwm.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
made code more readable
[dwm.git]
/
wm.h
diff --git
a/wm.h
b/wm.h
index
7ee6103
..
a24b40d
100644
(file)
--- a/
wm.h
+++ b/
wm.h
@@
-13,19
+13,6
@@
typedef struct Client Client;
typedef struct Key Key;
typedef struct Client Client;
typedef struct Key Key;
-typedef enum Align Align;
-
-enum Align {
- NORTH = 0x01,
- EAST = 0x02,
- SOUTH = 0x04,
- WEST = 0x08,
- NEAST = NORTH | EAST,
- NWEST = NORTH | WEST,
- SEAST = SOUTH | EAST,
- SWEST = SOUTH | WEST,
- CENTER = NEAST | SWEST
-};
/* atoms */
enum { WMProtocols, WMDelete, WMLast };
/* atoms */
enum { WMProtocols, WMDelete, WMLast };
@@
-34,20
+21,15
@@
enum { NetSupported, NetWMName, NetLast };
/* cursor */
enum { CurNormal, CurResize, CurMove, CurInput, CurLast };
/* cursor */
enum { CurNormal, CurResize, CurMove, CurInput, CurLast };
-/* rects */
-enum { RFloat, RGrid, RLast };
-
struct Client {
struct Client {
- char name[256];
- char tag[256];
- unsigned int border;
+ char name[256], tag[256];
int proto;
int proto;
- Bool fixedsize;
+ int x, y, w, h;
+ int basew, baseh, incw, inch, maxw, maxh, minw, minh;
+ long flags;
Window win;
Window trans;
Window title;
Window win;
Window trans;
Window title;
- XSizeHints size;
- XRectangle r[RLast];
Client *next;
Client *snext;
};
Client *next;
Client *snext;
};
@@
-89,6
+71,7
@@
extern void focus(Client *c);
extern void update_name(Client *c);
extern void draw_client(Client *c);
extern void resize(Client *c);
extern void update_name(Client *c);
extern void draw_client(Client *c);
extern void resize(Client *c);
+extern void update_size(Client *c);
/* event.c */
extern unsigned int discard_events(long even_mask);
/* event.c */
extern unsigned int discard_events(long even_mask);