monotonic_start_time needs to be a global symbol, not local to each translation unit

This commit is contained in:
Kovid Goyal
2019-09-28 08:17:54 +05:30
parent 3378175450
commit 97fe38fbbc
7 changed files with 20 additions and 10 deletions

9
kitty/glfw-wrapper.h generated
View File

@@ -7,7 +7,7 @@
#pragma once
#include <stddef.h>
#include <stdint.h>
#include "../kitty/monotonic.h"
#include "monotonic.h"
@@ -955,7 +955,7 @@ typedef struct GLFWkeyevent
// Bit field describing which [modifier keys](@ref mods) were held down.
int mods;
// UTF-8 encoded text generated by this key event or empty string.
// UTF-8 encoded text generated by this key event or empty string or NULL
const char *text;
// Used for Input Method events. Zero for normal key events.
@@ -1249,7 +1249,8 @@ typedef void (* GLFWscrollfun)(GLFWwindow*,double,double,int);
* the "s" key will generate text "o" and GLFW_KEY_O.
*
* @param[in] window The window that received the event.
* @param[in] ev TODO: blablabla
* @param[in] ev The key event, see GLFWkeyevent. The data in this event is only valid for
* the lifetime of the callback.
*
* @note On X11/Wayland if a modifier other than the modifiers GLFW reports
* (ctrl/shift/alt/super) is used, GLFW will report the shifted key rather
@@ -1476,7 +1477,7 @@ typedef void (* GLFWcocoarenderframefun)(GLFWwindow*);
typedef void (*GLFWwaylandframecallbackfunc)(unsigned long long id);
typedef void (*GLFWDBusnotificationcreatedfun)(unsigned long long, uint32_t, void*);
typedef void (*GLFWDBusnotificationactivatedfun)(uint32_t, const char*);
typedef int (*glfwInit_func)(void);
typedef int (*glfwInit_func)(monotonic_t);
glfwInit_func glfwInit_impl;
#define glfwInit glfwInit_impl