From 5ec06dcecd2b81fc5a3a668072e1b4d9b656515e Mon Sep 17 00:00:00 2001 From: Dominique Martinet Date: Thu, 1 Mar 2018 21:11:41 +0100 Subject: xwm: fix call of xcb_change_window_attributes for old gcc versions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gcc 6.3.0 (at least) complains about &values: expected ‘const uint32_t * {aka const unsigned int *}’ but argument is of type ‘uint32_t (*)[1] {aka unsigned int (*)[1]}’ Reported by thorwil on irc --- xwayland/xwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xwayland/xwm.c b/xwayland/xwm.c index c41b8d47..d9899c57 100644 --- a/xwayland/xwm.c +++ b/xwayland/xwm.c @@ -93,7 +93,7 @@ static struct wlr_xwayland_surface *wlr_xwayland_surface_create( XCB_EVENT_MASK_FOCUS_CHANGE | XCB_EVENT_MASK_PROPERTY_CHANGE; xcb_change_window_attributes(xwm->xcb_conn, window_id, - XCB_CW_EVENT_MASK, &values); + XCB_CW_EVENT_MASK, values); surface->xwm = xwm; surface->window_id = window_id; -- cgit v1.2.3