aboutsummaryrefslogtreecommitdiffstats
path: root/calmwm.h
diff options
context:
space:
mode:
authorokan2013-07-15 23:53:19 +0000
committerokan2013-07-15 23:53:19 +0000
commit572ba0fcd1fed6557acba57faf3eed0909a65852 (patch)
tree3de9f9c5da35ddda82cccdae22f170edcfa18c3e /calmwm.h
parent70bc290910a7e56dfab0964126616ef9ac5192a8 (diff)
downloadcwm-572ba0fcd1fed6557acba57faf3eed0909a65852.tar.gz
shuffle down protoypes
Diffstat (limited to 'calmwm.h')
-rw-r--r--calmwm.h99
1 files changed, 48 insertions, 51 deletions
diff --git a/calmwm.h b/calmwm.h
index a536e9e..1ef7bc9 100644
--- a/calmwm.h
+++ b/calmwm.h
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: calmwm.h,v 1.218 2013/07/15 14:50:44 okan Exp $
+ * $OpenBSD: calmwm.h,v 1.219 2013/07/15 23:53:19 okan Exp $
*/
#ifndef _CALMWM_H_
@@ -318,6 +318,53 @@ struct mwm_hints {
#define MWM_DECOR_ALL (1<<0)
#define MWM_DECOR_BORDER (1<<1)
+extern Display *X_Dpy;
+extern struct screen_ctx_q Screenq;
+extern struct client_ctx_q Clientq;
+extern struct conf Conf;
+extern char *homedir;
+extern int HasRandr, Randr_ev;
+
+enum {
+ WM_STATE,
+ WM_DELETE_WINDOW,
+ WM_TAKE_FOCUS,
+ WM_PROTOCOLS,
+ _MOTIF_WM_HINTS,
+ UTF8_STRING,
+ WM_CHANGE_STATE,
+ CWMH_NITEMS
+};
+enum {
+ _NET_SUPPORTED,
+ _NET_SUPPORTING_WM_CHECK,
+ _NET_ACTIVE_WINDOW,
+ _NET_CLIENT_LIST,
+ _NET_NUMBER_OF_DESKTOPS,
+ _NET_CURRENT_DESKTOP,
+ _NET_DESKTOP_VIEWPORT,
+ _NET_DESKTOP_GEOMETRY,
+ _NET_VIRTUAL_ROOTS,
+ _NET_SHOWING_DESKTOP,
+ _NET_DESKTOP_NAMES,
+ _NET_WORKAREA,
+ _NET_WM_NAME,
+ _NET_WM_DESKTOP,
+ _NET_CLOSE_WINDOW,
+ _NET_WM_STATE,
+#define _NET_WM_STATES_NITEMS 2
+ _NET_WM_STATE_MAXIMIZED_VERT,
+ _NET_WM_STATE_MAXIMIZED_HORZ,
+ EWMH_NITEMS
+};
+enum {
+ _NET_WM_STATE_REMOVE,
+ _NET_WM_STATE_ADD,
+ _NET_WM_STATE_TOGGLE
+};
+extern Atom cwmh[CWMH_NITEMS];
+extern Atom ewmh[EWMH_NITEMS];
+
__dead void usage(void);
void client_applysizehints(struct client_ctx *);
@@ -511,54 +558,4 @@ int xasprintf(char **, const char *, ...)
__attribute__((__format__ (printf, 2, 3)))
__attribute__((__nonnull__ (2)));
-/* Externs */
-extern Display *X_Dpy;
-
-extern struct screen_ctx_q Screenq;
-extern struct client_ctx_q Clientq;
-extern struct conf Conf;
-extern char *homedir;
-
-extern int HasRandr, Randr_ev;
-
-enum {
- WM_STATE,
- WM_DELETE_WINDOW,
- WM_TAKE_FOCUS,
- WM_PROTOCOLS,
- _MOTIF_WM_HINTS,
- UTF8_STRING,
- WM_CHANGE_STATE,
- CWMH_NITEMS
-};
-enum {
- _NET_SUPPORTED,
- _NET_SUPPORTING_WM_CHECK,
- _NET_ACTIVE_WINDOW,
- _NET_CLIENT_LIST,
- _NET_NUMBER_OF_DESKTOPS,
- _NET_CURRENT_DESKTOP,
- _NET_DESKTOP_VIEWPORT,
- _NET_DESKTOP_GEOMETRY,
- _NET_VIRTUAL_ROOTS,
- _NET_SHOWING_DESKTOP,
- _NET_DESKTOP_NAMES,
- _NET_WORKAREA,
- _NET_WM_NAME,
- _NET_WM_DESKTOP,
- _NET_CLOSE_WINDOW,
- _NET_WM_STATE,
-#define _NET_WM_STATES_NITEMS 2
- _NET_WM_STATE_MAXIMIZED_VERT,
- _NET_WM_STATE_MAXIMIZED_HORZ,
- EWMH_NITEMS
-};
-enum {
- _NET_WM_STATE_REMOVE,
- _NET_WM_STATE_ADD,
- _NET_WM_STATE_TOGGLE
-};
-extern Atom cwmh[CWMH_NITEMS];
-extern Atom ewmh[EWMH_NITEMS];
-
#endif /* _CALMWM_H_ */