Only warn about failure to primary select once
This commit is contained in:
parent
e5d9182606
commit
7db6318806
8
glfw/wl_window.c
vendored
8
glfw/wl_window.c
vendored
@ -1969,8 +1969,12 @@ const char* _glfwPlatformGetClipboardString(void)
|
||||
void _glfwPlatformSetPrimarySelectionString(const char* string)
|
||||
{
|
||||
if (!_glfw.wl.primarySelectionDevice) {
|
||||
_glfwInputError(GLFW_PLATFORM_ERROR,
|
||||
"Wayland: Cannot copy no primary selection device available");
|
||||
static GLFWbool warned_about_primary_selection_device = GLFW_FALSE;
|
||||
if (!warned_about_primary_selection_device) {
|
||||
_glfwInputError(GLFW_PLATFORM_ERROR,
|
||||
"Wayland: Cannot copy no primary selection device available");
|
||||
warned_about_primary_selection_device = GLFW_TRUE;
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (_glfw.wl.primarySelectionString == string) return;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user