From 060712ee4daebdc7a17bcb1be8d5a53742a8e18f Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Thu, 23 Apr 2020 23:13:55 +0200 Subject: [PATCH] Remote the WS_EX_ACCEPTFILES It doesn't matter, but we shouldn't be the window accepting drag and drop operations. --- src/wine-host/editor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wine-host/editor.cpp b/src/wine-host/editor.cpp index 08194300..48072c1f 100644 --- a/src/wine-host/editor.cpp +++ b/src/wine-host/editor.cpp @@ -46,7 +46,7 @@ Editor::Editor(const std::string& window_class_name, // be drawn without any decorations (making resizes behave as you'd // expect) and also causes mouse coordinates to be relative to the window // itself. - win32_handle(CreateWindowEx(WS_EX_TOOLWINDOW | WS_EX_ACCEPTFILES, + win32_handle(CreateWindowEx(WS_EX_TOOLWINDOW, reinterpret_cast(window_class.atom), "yabridge plugin", WS_POPUP, @@ -72,7 +72,7 @@ Editor::Editor(const std::string& window_class_name, // the plugin is not busy. SetTimer(win32_handle.get(), idle_timer_id, 100, nullptr); - // see the x11 events part of `editor::handle_events` + // See the x11 events part of `editor::handle_events` const uint32_t parent_event_mask = XCB_EVENT_MASK_STRUCTURE_NOTIFY; xcb_change_window_attributes(x11_connection.get(), parent_window, XCB_CW_EVENT_MASK, &parent_event_mask);