Rename init_proxy -> get_handle

This commit is contained in:
Robbert van der Helm
2021-07-10 15:16:20 +02:00
parent 1946693244
commit b47a6e034b
3 changed files with 6 additions and 5 deletions
+2 -2
View File
@@ -202,7 +202,7 @@ Editor::Editor(MainContext& main_context,
std::optional<fu2::unique_function<void()>> timer_proc)
: use_xembed(config.editor_xembed),
x11_connection(xcb_connect(nullptr, nullptr), xcb_disconnect),
dnd_proxy_handle(WineXdndProxy::init_proxy()),
dnd_proxy_handle(WineXdndProxy::get_handle()),
client_area(get_maximum_screen_dimensions(*x11_connection)),
// Create a window without any decoratiosn for easy embedding. The
// combination of `WS_EX_TOOLWINDOW` and `WS_POPUP` causes the window to
@@ -365,7 +365,7 @@ Editor::Editor(MainContext& main_context,
// Set up our proxy for translating Wine drag-and-drop events into XDND
// events
// TODO: We're going to need to store this somewhere to pass the events
WineXdndProxy::init_proxy();
WineXdndProxy::get_handle();
}
void Editor::handle_x11_events() const noexcept {