mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 03:50:11 +02:00
Don't fetch the root window early
Wine is weird. The whole reason why we're doing these weird things is because Wine somehow tries to delete the window twice. If we don't call `xcb_query_tree()` here (and get an error back), then we're back at the error we tried to solve. Apparently this works, and given that noone dares touching Wine's X11drv code I won't ask any further questions.
This commit is contained in:
@@ -102,7 +102,7 @@ class DeferredWin32Window {
|
||||
*/
|
||||
DeferredWin32Window(MainContext& main_context,
|
||||
std::shared_ptr<xcb_connection_t> x11_connection,
|
||||
HWND window);
|
||||
HWND window) noexcept;
|
||||
|
||||
/**
|
||||
* Post a `WM_CLOSE` message to the `handle`'s message queue as described
|
||||
@@ -115,9 +115,6 @@ class DeferredWin32Window {
|
||||
private:
|
||||
MainContext& main_context;
|
||||
std::shared_ptr<xcb_connection_t> x11_connection;
|
||||
|
||||
const xcb_window_t wine_window;
|
||||
const xcb_window_t root_window;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user