Add an X11 connection to the drag-and-drop proxy

This commit is contained in:
Robbert van der Helm
2021-07-10 00:09:06 +02:00
parent b3001cc22b
commit b1e3488a24
2 changed files with 10 additions and 1 deletions
+2 -1
View File
@@ -134,7 +134,8 @@ void CALLBACK dnd_winevent_callback(HWINEVENTHOOK /*hWinEventHook*/,
}
WineXdndProxy::WineXdndProxy()
: hook_handle(
: x11_connection(xcb_connect(nullptr, nullptr), xcb_disconnect),
hook_handle(
SetWinEventHook(EVENT_OBJECT_CREATE,
EVENT_OBJECT_CREATE,
nullptr,