From 9a4b62798bf4bcc2828a2a485e878e7d4447d03d Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Fri, 26 Apr 2019 02:26:44 +0100 Subject: [PATCH] hw/xwin: Fix lingering uses of libX11 types and values --- hw/xwin/winmultiwindowicons.c | 3 +-- hw/xwin/winmultiwindowicons.h | 2 +- hw/xwin/winmultiwindowwm.c | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/hw/xwin/winmultiwindowicons.c b/hw/xwin/winmultiwindowicons.c index c43c29887..f39f842db 100644 --- a/hw/xwin/winmultiwindowicons.c +++ b/hw/xwin/winmultiwindowicons.c @@ -40,7 +40,6 @@ #include #include -#include #include #include #include @@ -582,7 +581,7 @@ winXIconToHICON(xcb_connection_t *conn, xcb_window_t id, int iconSize) */ void -winUpdateIcon(HWND hWnd, xcb_connection_t *conn, Window id, HICON hIconNew) +winUpdateIcon(HWND hWnd, xcb_connection_t *conn, xcb_window_t id, HICON hIconNew) { HICON hIcon, hIconSmall = NULL, hIconOld; diff --git a/hw/xwin/winmultiwindowicons.h b/hw/xwin/winmultiwindowicons.h index 87ba8d1cf..8b077ab80 100644 --- a/hw/xwin/winmultiwindowicons.h +++ b/hw/xwin/winmultiwindowicons.h @@ -30,7 +30,7 @@ #include void - winUpdateIcon(HWND hWnd, xcb_connection_t *conn, Window id, HICON hIconNew); + winUpdateIcon(HWND hWnd, xcb_connection_t *conn, xcb_window_t id, HICON hIconNew); void winInitGlobalIcons(void); diff --git a/hw/xwin/winmultiwindowwm.c b/hw/xwin/winmultiwindowwm.c index aa83c2c41..fa339a9fb 100644 --- a/hw/xwin/winmultiwindowwm.c +++ b/hw/xwin/winmultiwindowwm.c @@ -1275,7 +1275,7 @@ winMultiWindowXMsgProc(void *pArg) if ((reply->root == reply_qt->parent) && !notify->override_redirect) { xcb_reparent_notify_event_t event_send; - event_send.response_type = ReparentNotify; + event_send.response_type = XCB_REPARENT_NOTIFY; event_send.event = notify->window; event_send.window = notify->window; event_send.parent = reply_qt->parent;