From ebaf16b08d739e798b36a0bc2ff139d068612d4d Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Sun, 21 Jun 2020 09:47:58 -0400 Subject: include twm.h in header files which rely upon its definitions Signed-off-by: Thomas E. Dickey --- src/add_window.c | 2 +- src/iconmgr.h | 2 ++ src/icons.h | 2 ++ src/menus.h | 2 ++ src/resize.h | 2 ++ src/session.h | 3 +++ src/util.h | 2 ++ 7 files changed, 14 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/add_window.c b/src/add_window.c index b4189e1..3895729 100644 --- a/src/add_window.c +++ b/src/add_window.c @@ -51,7 +51,7 @@ in this Software without prior written authorization from The Open Group. /********************************************************************** * - * Add a new window, put the titlbar and other stuff around + * Add a new window, put the titlebar and other stuff around * the window * * 31-Mar-88 Tom LaStrange Initial Version. diff --git a/src/iconmgr.h b/src/iconmgr.h index c74ffb1..ae9214a 100644 --- a/src/iconmgr.h +++ b/src/iconmgr.h @@ -34,6 +34,8 @@ in this Software without prior written authorization from The Open Group. #ifndef _ICONMGR_ #define _ICONMGR_ +#include "twm.h" + typedef struct WList { struct WList *next; struct WList *prev; diff --git a/src/icons.h b/src/icons.h index 4945967..4bac87a 100644 --- a/src/icons.h +++ b/src/icons.h @@ -34,6 +34,8 @@ in this Software without prior written authorization from The Open Group. #ifndef ICONS_H #define ICONS_H +#include "twm.h" + typedef struct IconRegion { struct IconRegion *next; int x, y, w, h; diff --git a/src/menus.h b/src/menus.h index de0629c..0692a27 100644 --- a/src/menus.h +++ b/src/menus.h @@ -60,6 +60,8 @@ in this Software without prior written authorization from The Open Group. #ifndef _MENUS_ #define _MENUS_ +#include "twm.h" + #define TWM_ROOT "bLoB_GoOp" /* my private root menu */ #define TWM_WINDOWS "TwmWindows" /* for f.menu "TwmWindows" */ diff --git a/src/resize.h b/src/resize.h index 5eb729e..a16a238 100644 --- a/src/resize.h +++ b/src/resize.h @@ -60,6 +60,8 @@ in this Software without prior written authorization from The Open Group. #ifndef _RESIZE_ #define _RESIZE_ +#include "twm.h" + extern void AddEndResize(TwmWindow *tmp_win); extern void AddStartResize(TwmWindow *tmp_win, int x, int y, int w, int h); extern void ConstrainSize(TwmWindow *tmp_win, int *widthp, int *heightp); diff --git a/src/session.h b/src/session.h index 3b93fb7..c574a45 100644 --- a/src/session.h +++ b/src/session.h @@ -25,6 +25,9 @@ */ #ifndef _SESSION_H #define _SESSION_H + +#include "twm.h" + #include extern void ConnectToSessionManager(char *previous_id); diff --git a/src/util.h b/src/util.h index 195432c..448ed4d 100644 --- a/src/util.h +++ b/src/util.h @@ -60,6 +60,8 @@ in this Software without prior written authorization from The Open Group. #ifndef _UTIL_ #define _UTIL_ +#include "twm.h" + extern void MoveOutline(Window root, int x, int y, int width, int height, int bw, int th); extern void Zoom(Window wf, Window wt); -- cgit v1.2.3