summaryrefslogtreecommitdiff
path: root/gwm.h
diff options
context:
space:
mode:
Diffstat (limited to 'gwm.h')
-rw-r--r--gwm.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/gwm.h b/gwm.h
index 03d2d9c..9cf219c 100644
--- a/gwm.h
+++ b/gwm.h
@@ -65,6 +65,7 @@ enum x_atom {
enum gwm_atom {
ATOM_COMPOUND_TEXT,
ATOM_MANAGER,
+ ATOM__MOTIF_WM_HINTS,
ATOM__NET_WM_NAME,
ATOM_UTF8_STRING,
ATOM_VERSION,
@@ -81,6 +82,7 @@ enum gwm_atom {
extern xcb_atom_t atoms[ NUM_ATOMS ];
enum gwm_property_type {
+ PROP__MOTIF_WM_HINTS,
PROP__NET_WM_NAME,
PROP_WM_COLORMAP_WINDOWS,
PROP_WM_HINTS,
@@ -186,6 +188,10 @@ extern xcb_cursor_t cursors[ NUM_CURSORS ];
#define STATE_NORMAL 1
#define STATE_ICONIC 3
+#define DEC_BORDER 0x1
+#define DEC_TITLE 0x2
+#define DEC_DEFAULT ( DEC_BORDER | DEC_TITLE )
+
struct gwm_window {
xcb_window_t w;
int screen;
@@ -200,6 +206,9 @@ struct gwm_window {
struct gwm_window *frame;
uint16_t border_width;
xcb_colormap_t cmap;
+#if USE_SHAPE
+ int shaped;
+#endif
/* from WM_COLORMAP_WINDOWS: */
xcb_window_t cmap_window;
/* from WM_HINTS: */
@@ -219,6 +228,7 @@ struct gwm_window {
struct _gwm_frame {
struct gwm_window *child, *button;
int x, y, width, height;
+ int decoration; /* see DEC_* above */
} frame;
struct _gwm_button {
struct gwm_window *frame;
@@ -237,8 +247,6 @@ struct gwm_window {
extern struct gwm_window *fake_window; /* a window created solely to hold the
WM_Sn selections */
-extern struct gwm_window *focus_frame; /* the WINDOW_FRAME which has the
- focus, if any */
extern const char *argv0;
@@ -305,8 +313,6 @@ extern void install_window_colormap( int screen, struct gwm_window *window,
extern void generic_expose( struct gwm_window *window,
xcb_expose_event_t *ev );
-extern void deactivate_focus_frame( void );
-
extern void iconic_to_normal( struct gwm_window *window );
extern void manage_window( xcb_window_t w, int map_request );