summaryrefslogtreecommitdiff
path: root/src/window.h
diff options
context:
space:
mode:
authorAmadeusz Sławiński <amade@asmblr.net>2013-10-17 17:36:50 +0200
committerAmadeusz Sławiński <amade@asmblr.net>2015-06-26 11:31:24 +0200
commit7d7268ccb67c3cb0eda5a795f39fc2507c734c1e (patch)
tree3af0a955861a2f6465e9c48dcd4367f09dad6991 /src/window.h
parent7dd44046c9199e594fa0515b0c18cf3846a34244 (diff)
downloadscreen-7d7268ccb67c3cb0eda5a795f39fc2507c734c1e.tar.gz
forward declarations for types make more sense in a separate file
it's easier to see what's going on, and it looks better included in headers instead of explicitly put in
Diffstat (limited to 'src/window.h')
-rw-r--r--src/window.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/window.h b/src/window.h
index 5661f9e..3300c7b 100644
--- a/src/window.h
+++ b/src/window.h
@@ -33,6 +33,8 @@
#ifndef SCREEN_WINDOW_H
#define SCREEN_WINDOW_H
+#include "fwddecl.h"
+
/* keep this in sync with the initialisations in window.c */
struct NewWindow {
int StartAt; /* where to start the search for the slot */
@@ -125,7 +127,7 @@ struct paster {
struct event pa_slowev; /* slowpaste event */
};
-typedef struct _Window {
+typedef struct Window {
Window *w_next; /* next window */
int w_type; /* type of window */
struct layer w_layer; /* our layer */
@@ -259,7 +261,7 @@ typedef struct _Window {
struct event w_destroyev; /* window destroy event */
int w_exitstatus;
int w_miflag;
-} Window;
+};
#define w_encoding w_layer.l_encoding