Fix broken paste on X11

Fixes https://github.com/kovidgoyal/kitty/issues/2008.
This commit is contained in:
Luflosi
2019-09-29 02:48:09 +02:00
parent 97fe38fbbc
commit a8f6615380

2
glfw/x11_window.c vendored
View File

@@ -897,7 +897,7 @@ static const char* getSelectionString(Atom selection)
&notification))
{
monotonic_t time = glfwGetTime();
if (time - start > 2ll)
if (time - start > s_to_monotonic_t(2ll))
return "";
waitForX11Event(s_to_monotonic_t(2ll) - (time - start));
}