-
Notifications
You must be signed in to change notification settings - Fork 2
/
mwmproto.h
33 lines (33 loc) · 1 KB
/
mwmproto.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// jbwm - Minimalist Window Manager for X
// Copyright 2020, Alisa Bedard <alisabedard@gmail.com>
#ifndef JBWM_MWMPROTO_H
#define JBWM_MWMPROTO_H
// These are MWM-specific hints
enum MwmFlags {
// flags:
MWM_HINTS_FUNCTIONS = (1L << 0), MWM_HINTS_DECORATIONS = (1L << 1),
MWM_HINTS_INPUT_MODE = (1L << 2), MWM_HINTS_STATUS = (1L << 3)
};
enum MwmFunctions {
// functions:
MWM_FUNC_ALL = (1L << 0), MWM_FUNC_RESIZE = (1L << 1),
MWM_FUNC_MOVE = (1L << 2), MWM_FUNC_MINIMIZE = (1L << 3),
MWM_FUNC_MAXIMIZE = (1L << 4), MWM_FUNC_CLOSE = (1L << 5),
};
enum MwmDecor {
// decor:
MWM_DECOR_ALL = (1L << 0), MWM_DECOR_BORDER = (1L << 1),
MWM_DECOR_RESIZEH = (1L << 2), MWM_DECOR_TITLE = (1L << 3),
MWM_DECOR_MENU = (1L << 4), MWM_DECOR_MINIMIZE = (1L << 5),
MWM_DECOR_MAXIMIZE = (1L << 6),
};
enum MwmStatus {
// status:
MWM_TEAROFF_WINDOW = 1
};
struct JBWMMwm { // paraphrased from MwmUtil.h
unsigned long flags, functions, decor;
long input_mode;
unsigned long status;
};
#endif//!JBWM_MWMPROTO_H