From 1650bfdc36cf23d6b48c970ccf7cbdf120419009 Mon Sep 17 00:00:00 2001 From: okan Date: Fri, 8 Nov 2013 17:35:12 +0000 Subject: stash WMProtocols in flags --- calmwm.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'calmwm.h') diff --git a/calmwm.h b/calmwm.h index 741bf8a..9d7d722 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.226 2013/11/02 19:13:56 okan Exp $ + * $OpenBSD: calmwm.h,v 1.227 2013/11/08 17:35:12 okan Exp $ */ #ifndef _CALMWM_H_ @@ -126,11 +126,6 @@ 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; @@ -157,7 +152,6 @@ struct client_ctx { int x; /* x position */ int y; /* y position */ } ptr; - enum wm_protocols xproto; #define CLIENT_HIDDEN 0x0001 #define CLIENT_IGNORE 0x0002 #define CLIENT_VMAXIMIZED 0x0004 @@ -166,6 +160,8 @@ struct client_ctx { #define CLIENT_GROUP 0x0020 #define CLIENT_UNGROUP 0x0040 #define CLIENT_INPUT 0x0080 +#define CLIENT_WM_DELETE_WINDOW 0x0100 +#define CLIENT_WM_TAKE_FOCUS 0x0200 #define CLIENT_HIGHLIGHT (CLIENT_GROUP | CLIENT_UNGROUP) #define CLIENT_MAXFLAGS (CLIENT_VMAXIMIZED | CLIENT_HMAXIMIZED) -- cgit v1.2.3-2-gb3c3