summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2020-06-21 09:47:58 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2020-06-21 09:47:58 -0400
commitebaf16b08d739e798b36a0bc2ff139d068612d4d (patch)
tree663a8e166fa5954c4aaff6efc28a5eecb43b05ad
parent68703413c5d6d800f0f79d08ad51a86dc53713ce (diff)
include twm.h in header files which rely upon its definitions
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
-rw-r--r--src/add_window.c2
-rw-r--r--src/iconmgr.h2
-rw-r--r--src/icons.h2
-rw-r--r--src/menus.h2
-rw-r--r--src/resize.h2
-rw-r--r--src/session.h3
-rw-r--r--src/util.h2
7 files changed, 14 insertions, 1 deletions
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 <X11/SM/SMlib.h>
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);