From 61157e8763addc84f29eaa933b783f1b3ff5d50c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 11 Feb 2018 11:14:48 +0530 Subject: [PATCH] Remove the passing of swap_interval as a constructor parameter It was unused and makes it more complicated to override via an option, if needed. --- kitty/glfw.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kitty/glfw.c b/kitty/glfw.c index e6398f99d..d3935a8fc 100644 --- a/kitty/glfw.c +++ b/kitty/glfw.c @@ -298,10 +298,10 @@ set_dpi_from_os_window(OSWindow *w) { static PyObject* create_os_window(PyObject UNUSED *self, PyObject *args) { - int width, height, swap_interval = 0, x = -1, y = -1; + int width, height, x = -1, y = -1; char *title, *wm_class_class, *wm_class_name; PyObject *load_programs = NULL; - if (!PyArg_ParseTuple(args, "iisss|Oiii", &width, &height, &title, &wm_class_name, &wm_class_class, &load_programs, &swap_interval, &x, &y)) return NULL; + if (!PyArg_ParseTuple(args, "iisss|Oiii", &width, &height, &title, &wm_class_name, &wm_class_class, &load_programs, &x, &y)) return NULL; bool is_first_window = standard_cursor == NULL; if (is_first_window) { @@ -346,7 +346,7 @@ create_os_window(PyObject UNUSED *self, PyObject *args) { glfwMakeContextCurrent(glfw_window); if (x != -1 && y != -1) glfwSetWindowPos(glfw_window, x, y); current_os_window_ctx = glfw_window; - glfwSwapInterval(swap_interval); // a value of 1 makes mouse selection laggy + glfwSwapInterval(1); // a value of 1 makes mouse selection laggy if (is_first_window) { set_dpi_from_os_window(NULL); gl_init();