mirror of
https://github.com/glfw/glfw.git
synced 2026-09-21 08:39:45 +00:00
Wayland: Rename data transfer parameters
No rationale beyond personal preference.
(cherry picked from commit ba11e60859)
This commit is contained in:
+7
-7
@@ -1709,10 +1709,10 @@ void _glfwPlatformSetCursor(_GLFWwindow* window, _GLFWcursor* cursor)
|
||||
}
|
||||
|
||||
static void dataSourceHandleTarget(void* data,
|
||||
struct wl_data_source* dataSource,
|
||||
struct wl_data_source* source,
|
||||
const char* mimeType)
|
||||
{
|
||||
if (_glfw.wl.dataSource != dataSource)
|
||||
if (_glfw.wl.dataSource != source)
|
||||
{
|
||||
_glfwInputError(GLFW_PLATFORM_ERROR,
|
||||
"Wayland: Unknown clipboard data source");
|
||||
@@ -1721,7 +1721,7 @@ static void dataSourceHandleTarget(void* data,
|
||||
}
|
||||
|
||||
static void dataSourceHandleSend(void* data,
|
||||
struct wl_data_source* dataSource,
|
||||
struct wl_data_source* source,
|
||||
const char* mimeType,
|
||||
int fd)
|
||||
{
|
||||
@@ -1729,7 +1729,7 @@ static void dataSourceHandleSend(void* data,
|
||||
size_t len = strlen(string);
|
||||
int ret;
|
||||
|
||||
if (_glfw.wl.dataSource != dataSource)
|
||||
if (_glfw.wl.dataSource != source)
|
||||
{
|
||||
_glfwInputError(GLFW_PLATFORM_ERROR,
|
||||
"Wayland: Unknown clipboard data source");
|
||||
@@ -1771,11 +1771,11 @@ static void dataSourceHandleSend(void* data,
|
||||
}
|
||||
|
||||
static void dataSourceHandleCancelled(void* data,
|
||||
struct wl_data_source* dataSource)
|
||||
struct wl_data_source* source)
|
||||
{
|
||||
wl_data_source_destroy(dataSource);
|
||||
wl_data_source_destroy(source);
|
||||
|
||||
if (_glfw.wl.dataSource != dataSource)
|
||||
if (_glfw.wl.dataSource != source)
|
||||
{
|
||||
_glfwInputError(GLFW_PLATFORM_ERROR,
|
||||
"Wayland: Unknown clipboard data source");
|
||||
|
||||
Reference in New Issue
Block a user