diff options
author | Pekka Paalanen <pekka.paalanen@collabora.com> | 2019-12-12 13:20:24 +0200 |
---|---|---|
committer | Pekka Paalanen <pekka.paalanen@collabora.com> | 2019-12-12 13:21:35 +0200 |
commit | 8f9fa461689ddab9ce5beb0cfc32ca11fc3d04a2 (patch) | |
tree | 0508b05892f76078513b994bc52349edb807ddc6 | |
parent | 98ab770ab87ce8cfe240a864f382d2553244d782 (diff) | |
download | weston-8f9fa461689ddab9ce5beb0cfc32ca11fc3d04a2.tar.gz |
xwm: xcb_configure_window() takes uint16_t
The mask argument is uint16_t so declare the variable with the same.
Suggested-by: Daniel Stone <daniels@collabora.com>
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
-rw-r--r-- | xwayland/window-manager.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/xwayland/window-manager.c b/xwayland/window-manager.c index 6a646fe9..1595721f 100644 --- a/xwayland/window-manager.c +++ b/xwayland/window-manager.c @@ -719,7 +719,8 @@ weston_wm_handle_configure_request(struct weston_wm *wm, xcb_generic_event_t *ev xcb_configure_request_event_t *configure_request = (xcb_configure_request_event_t *) event; struct weston_wm_window *window; - uint32_t mask, values[16]; + uint32_t values[16]; + uint16_t mask; int x, y, width, height, i = 0; wm_printf(wm, "XCB_CONFIGURE_REQUEST (window %d) %d,%d @ %dx%d\n", @@ -2727,7 +2728,8 @@ send_position(struct weston_surface *surface, int32_t x, int32_t y) { struct weston_wm_window *window = get_wm_window(surface); struct weston_wm *wm; - uint32_t mask, values[2]; + uint32_t values[2]; + uint16_t mask; if (!window || !window->wm) return; |