parent
5c38aabf0e
commit
b738f4d4ff
@ -17,6 +17,8 @@ To update |kitty|, :doc:`follow the instructions <binary>`.
|
|||||||
- Fix a regression that caused clicking in the padding/margins of windows in
|
- Fix a regression that caused clicking in the padding/margins of windows in
|
||||||
the stack layout to switch the window to the first window (:iss:`2604`)
|
the stack layout to switch the window to the first window (:iss:`2604`)
|
||||||
|
|
||||||
|
- Fix a regression that broke drag and drop on macOS (:iss:`2605`)
|
||||||
|
|
||||||
|
|
||||||
0.17.3 [2020-04-23]
|
0.17.3 [2020-04-23]
|
||||||
--------------------
|
--------------------
|
||||||
|
|||||||
12
kitty/glfw.c
12
kitty/glfw.c
@ -327,17 +327,11 @@ drop_callback(GLFWwindow *w, const char *mime, const char *data, size_t sz) {
|
|||||||
if (strcmp(mime, "text/uri-list") == 0) return 3;
|
if (strcmp(mime, "text/uri-list") == 0) return 3;
|
||||||
if (strcmp(mime, "text/plain;charset=utf-8") == 0) return 2;
|
if (strcmp(mime, "text/plain;charset=utf-8") == 0) return 2;
|
||||||
if (strcmp(mime, "text/plain") == 0) return 1;
|
if (strcmp(mime, "text/plain") == 0) return 1;
|
||||||
return 0;
|
goto end;
|
||||||
}
|
}
|
||||||
WINDOW_CALLBACK(on_drop, "sy#", mime, data, (int)sz);
|
WINDOW_CALLBACK(on_drop, "sy#", mime, data, (Py_ssize_t)sz);
|
||||||
request_tick_callback();
|
request_tick_callback();
|
||||||
/* PyObject *s = PyTuple_New(count); */
|
end:
|
||||||
/* if (s) { */
|
|
||||||
/* for (int i = 0; i < count; i++) PyTuple_SET_ITEM(s, i, PyUnicode_FromString(strings[i])); */
|
|
||||||
/* WINDOW_CALLBACK(on_drop, "O", s); */
|
|
||||||
/* Py_CLEAR(s); */
|
|
||||||
/* request_tick_callback(); */
|
|
||||||
/* } */
|
|
||||||
global_state.callback_os_window = NULL;
|
global_state.callback_os_window = NULL;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user