openbsd-ports/x11/awesome/patches/patch-client_h

27 lines
1.1 KiB
Plaintext

$OpenBSD: patch-client_h,v 1.2 2012/07/17 11:32:00 dcoppa Exp $
Revert to the old xcb-util-0.3.6 API
--- client.h.orig Sun Jul 15 12:12:21 2012
+++ client.h Tue Jul 17 13:16:29 2012
@@ -123,7 +123,7 @@ struct client_t
/** Window holding command needed to start it (session management related) */
xcb_window_t leader_window;
/** Client's WM_PROTOCOLS property */
- xcb_icccm_get_wm_protocols_reply_t protocols;
+ xcb_get_wm_protocols_reply_t protocols;
/** Client logical screen */
screen_t *screen;
/** Client physical screen */
@@ -247,8 +247,8 @@ client_raise(client_t *c)
static inline bool
client_isfixed(client_t *c)
{
- return (c->size_hints.flags & XCB_ICCCM_SIZE_HINT_P_MAX_SIZE
- && c->size_hints.flags & XCB_ICCCM_SIZE_HINT_P_MIN_SIZE
+ return (c->size_hints.flags & XCB_SIZE_HINT_P_MAX_SIZE
+ && c->size_hints.flags & XCB_SIZE_HINT_P_MIN_SIZE
&& c->size_hints.max_width == c->size_hints.min_width
&& c->size_hints.max_height == c->size_hints.min_height
&& c->size_hints.max_width