mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-21 20:52:19 +00:00
Only warn about failure to primary select once
This commit is contained in:
parent
e5d9182606
commit
7db6318806
1 changed files with 6 additions and 2 deletions
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…
Add table
Add a link
Reference in a new issue