about summary refs log tree commit diff
path: root/calmwm.h
diff options
context:
space:
mode:
authorokan <okan>2013-06-17 17:11:10 +0000
committerokan <okan>2013-06-17 17:11:10 +0000
commit234b8214df298740b37ad566771a9df2f1b3aec6 (patch)
treee7379452f7f424b6a8d44be6b6bfd4c9ee728b90 /calmwm.h
parent23d84adb5ed6cc3890fb1d74d4d5a43004b0ea0d (diff)
downloadcwm-234b8214df298740b37ad566771a9df2f1b3aec6.tar.gz
cwm-234b8214df298740b37ad566771a9df2f1b3aec6.tar.xz
cwm-234b8214df298740b37ad566771a9df2f1b3aec6.zip
move Cursors into conf.
Diffstat (limited to 'calmwm.h')
-rw-r--r--calmwm.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/calmwm.h b/calmwm.h
index ba0e15d..caf1808 100644
--- a/calmwm.h
+++ b/calmwm.h
@@ -85,6 +85,15 @@ union arg {
 	int	 i;
 };
 
+enum cursor_font {
+	CF_DEFAULT,
+	CF_MOVE,
+	CF_NORMAL,
+	CF_QUESTION,
+	CF_RESIZE,
+	CF_NITEMS
+};
+
 enum color {
 	CWM_COLOR_BORDER_ACTIVE,
 	CWM_COLOR_BORDER_INACTIVE,
@@ -294,6 +303,7 @@ struct conf {
 	char			 known_hosts[MAXPATHLEN];
 #define	CONF_FONT			"sans-serif:pixelsize=14:bold"
 	char			*font;
+	Cursor			 cursor[CF_NITEMS];
 };
 
 /* MWM hints */
@@ -437,6 +447,7 @@ void			 conf_bindname(struct conf *, char *, char *);
 void			 conf_clear(struct conf *);
 void			 conf_client(struct client_ctx *);
 void			 conf_cmd_add(struct conf *, char *, char *);
+void			 conf_cursor(struct conf *);
 void			 conf_grab_kbd(Window);
 void			 conf_grab_mouse(Window);
 void			 conf_init(struct conf *);
@@ -498,12 +509,6 @@ int			 xasprintf(char **, const char *, ...)
 /* Externs */
 extern Display				*X_Dpy;
 
-extern Cursor				 Cursor_default;
-extern Cursor				 Cursor_move;
-extern Cursor				 Cursor_normal;
-extern Cursor				 Cursor_question;
-extern Cursor				 Cursor_resize;
-
 extern struct screen_ctx_q		 Screenq;
 extern struct client_ctx_q		 Clientq;
 extern struct conf			 Conf;