summaryrefslogtreecommitdiffstats
path: root/src/cmd/rio/dat.h
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-03-30 05:01:53 +0000
committerrsc <devnull@localhost>2004-03-30 05:01:53 +0000
commitc005568a7fe03010dcd1b2df311e3cd7f7459448 (patch)
tree69249a0ae26535073d3f89d765335294d6920469 /src/cmd/rio/dat.h
parent1cb3fa80938299775382766b4b754e6220bf9831 (diff)
downloadplan9port-c005568a7fe03010dcd1b2df311e3cd7f7459448.tar.gz
plan9port-c005568a7fe03010dcd1b2df311e3cd7f7459448.zip
Border resizing and 9term greying.
Diffstat (limited to 'src/cmd/rio/dat.h')
-rw-r--r--src/cmd/rio/dat.h21
1 files changed, 14 insertions, 7 deletions
diff --git a/src/cmd/rio/dat.h b/src/cmd/rio/dat.h
index dc4c6fa5..afa9bb91 100644
--- a/src/cmd/rio/dat.h
+++ b/src/cmd/rio/dat.h
@@ -21,7 +21,7 @@
typedef struct Client Client;
typedef struct Menu Menu;
typedef struct ScreenInfo ScreenInfo;
-typedef enum BorderLocation BorderLocation;
+typedef enum BorderOrient BorderOrient;
struct Client {
Window window;
@@ -67,6 +67,7 @@ struct Client {
/* c->proto */
#define Pdelete 1
#define Ptakefocus 2
+#define Plosefocus 4
struct Menu {
char **item;
@@ -74,22 +75,27 @@ struct Menu {
int lasthit;
};
-enum BorderLocation {
+enum BorderOrient {
+ BorderUnknown = 0, /* we depend on this!*/
BorderN,
- BorderNE,
+ BorderNNE,
+ BorderENE,
BorderE,
- BorderSE,
+ BorderESE,
+ BorderSSE,
BorderS,
- BorderSW,
+ BorderSSW,
+ BorderWSW,
BorderW,
- BorderNW,
- BorderUnknown,
+ BorderWNW,
+ BorderNNW,
NBorder,
};
struct ScreenInfo {
int num;
int depth;
+ Visual *vis;
int width;
int height;
Window root;
@@ -149,6 +155,7 @@ extern Atom _9wm_hold_mode;
extern Atom wm_protocols;
extern Atom wm_delete;
extern Atom wm_take_focus;
+extern Atom wm_lose_focus;
extern Atom wm_colormaps;
/* client.c */