mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-08 04:20:13 +02:00
Clean up X11 client message functions
clang-tidy would warn about all parameters being the same, which is true, but that's kind of the point here.
This commit is contained in:
@@ -377,12 +377,13 @@ std::optional<xcb_window_t> WineXdndProxy::get_xdnd_proxy(
|
||||
}
|
||||
}
|
||||
|
||||
void WineXdndProxy::send_xdnd_message(const xcb_window_t& window,
|
||||
const xcb_atom_t message_type,
|
||||
const uint32_t data1,
|
||||
const uint32_t data2,
|
||||
const uint32_t data3,
|
||||
const uint32_t data4) const noexcept {
|
||||
// NOLINTNEXTLINE(bugprone-easily-swappable-parameters)
|
||||
void WineXdndProxy::send_xdnd_message(xcb_window_t window,
|
||||
xcb_atom_t message_type,
|
||||
uint32_t data1,
|
||||
uint32_t data2,
|
||||
uint32_t data3,
|
||||
uint32_t data4) const noexcept {
|
||||
// See https://www.freedesktop.org/wiki/Specifications/XDND/#clientmessages
|
||||
xcb_client_message_event_t event;
|
||||
event.response_type = XCB_CLIENT_MESSAGE;
|
||||
|
||||
Reference in New Issue
Block a user