mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-06-12 15:22:14 +02:00
Remote the WS_EX_ACCEPTFILES
It doesn't matter, but we shouldn't be the window accepting drag and drop operations.
This commit is contained in:
@@ -46,7 +46,7 @@ Editor::Editor(const std::string& window_class_name,
|
|||||||
// be drawn without any decorations (making resizes behave as you'd
|
// be drawn without any decorations (making resizes behave as you'd
|
||||||
// expect) and also causes mouse coordinates to be relative to the window
|
// expect) and also causes mouse coordinates to be relative to the window
|
||||||
// itself.
|
// itself.
|
||||||
win32_handle(CreateWindowEx(WS_EX_TOOLWINDOW | WS_EX_ACCEPTFILES,
|
win32_handle(CreateWindowEx(WS_EX_TOOLWINDOW,
|
||||||
reinterpret_cast<LPCSTR>(window_class.atom),
|
reinterpret_cast<LPCSTR>(window_class.atom),
|
||||||
"yabridge plugin",
|
"yabridge plugin",
|
||||||
WS_POPUP,
|
WS_POPUP,
|
||||||
@@ -72,7 +72,7 @@ Editor::Editor(const std::string& window_class_name,
|
|||||||
// the plugin is not busy.
|
// the plugin is not busy.
|
||||||
SetTimer(win32_handle.get(), idle_timer_id, 100, nullptr);
|
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;
|
const uint32_t parent_event_mask = XCB_EVENT_MASK_STRUCTURE_NOTIFY;
|
||||||
xcb_change_window_attributes(x11_connection.get(), parent_window,
|
xcb_change_window_attributes(x11_connection.get(), parent_window,
|
||||||
XCB_CW_EVENT_MASK, &parent_event_mask);
|
XCB_CW_EVENT_MASK, &parent_event_mask);
|
||||||
|
|||||||
Reference in New Issue
Block a user