diff options
author | okan | 2013-05-19 17:02:04 +0000 |
---|---|---|
committer | okan | 2013-05-19 17:02:04 +0000 |
commit | 905535649273a456101caa2811abfed2c65774eb (patch) | |
tree | cb1436ccd6f2b96baebacb5750ac2d5e1762e5ae /calmwm.h | |
parent | 77a164a48574c8ebaf00e3f96cf203f982e60b67 (diff) | |
download | cwm-905535649273a456101caa2811abfed2c65774eb.tar.gz |
use XGetWMProtocols and simplify WM_PROTOCOL handling
Diffstat (limited to '')
-rw-r--r-- | calmwm.h | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -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.199 2013/05/14 12:35:56 okan Exp $ + * $OpenBSD: calmwm.h,v 1.200 2013/05/19 17:02:04 okan Exp $ */ #ifndef _CALMWM_H_ @@ -121,6 +121,11 @@ struct winname { }; TAILQ_HEAD(winname_q, winname); +enum wm_protocols { + _WM_DELETE_WINDOW = 0x0001, + _WM_TAKE_FOCUS = 0x0002, +}; + struct client_ctx { TAILQ_ENTRY(client_ctx) entry; TAILQ_ENTRY(client_ctx) group_entry; @@ -147,9 +152,7 @@ struct client_ctx { int x; /* x position */ int y; /* y position */ } ptr; -#define CLIENT_PROTO_DELETE 0x0001 -#define CLIENT_PROTO_TAKEFOCUS 0x0002 - int xproto; + enum wm_protocols xproto; #define CLIENT_HIDDEN 0x0001 #define CLIENT_IGNORE 0x0002 #define CLIENT_VMAXIMIZED 0x0004 |