Fetch the Wine and root window IDs early

There's no reason to wait until the last moment to fetch these.
This commit is contained in:
Robbert van der Helm
2021-07-21 18:06:18 +02:00
parent d41c05e90e
commit 9002468229
2 changed files with 9 additions and 12 deletions
+4 -1
View File
@@ -102,7 +102,7 @@ class DeferredWin32Window {
*/
DeferredWin32Window(MainContext& main_context,
std::shared_ptr<xcb_connection_t> x11_connection,
HWND window) noexcept;
HWND window);
/**
* Post a `WM_CLOSE` message to the `handle`'s message queue as described
@@ -115,6 +115,9 @@ 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;
};
/**