mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-19 15:04:50 +02:00
Cleanup previous PR
This commit is contained in:
@@ -1400,12 +1400,14 @@ opt('inactive_text_alpha', '1.0',
|
||||
option_type='signed_unit_float', ctype='float',
|
||||
long_text='''
|
||||
Fade the text in inactive windows by the specified amount. This must be a
|
||||
number between negative one and one. The absolute value controls the actual
|
||||
opacity, with zero being fully faded and one being fully opaque. Negative
|
||||
values cause fading to be applied based only on whether the current window is
|
||||
active, ignoring the extra single-window unfocused case.
|
||||
'''
|
||||
)
|
||||
number between -1 and 1. The absolute value controls the actual
|
||||
opacity, with zero being fully faded and one being fully opaque. When a positive number is
|
||||
used the text is faded even if only a single window is visible when the OS window
|
||||
is not focused. Negative numbers means that text is only faded when more than one kitty window
|
||||
is visible in an OS Window. Fading happens in all but the active window, even if the OS Window
|
||||
is not focused. Thus this is useful if you want to rely on the window manager to indicate OS Window focus
|
||||
and this feature to indicate which kitty window is active insidethe OS Window.
|
||||
''')
|
||||
|
||||
opt('hide_window_decorations', 'no',
|
||||
option_type='hide_window_decorations', ctype='uint',
|
||||
|
||||
15
kitty/options/to-c-generated.h
generated
15
kitty/options/to-c-generated.h
generated
@@ -733,6 +733,19 @@ convert_from_opts_pointer_shape_when_dragging(PyObject *py_opts, Options *opts)
|
||||
Py_DECREF(ret);
|
||||
}
|
||||
|
||||
static void
|
||||
convert_from_python_drag_threshold(PyObject *val, Options *opts) {
|
||||
opts->drag_threshold = PyLong_AsLong(val);
|
||||
}
|
||||
|
||||
static void
|
||||
convert_from_opts_drag_threshold(PyObject *py_opts, Options *opts) {
|
||||
PyObject *ret = PyObject_GetAttrString(py_opts, "drag_threshold");
|
||||
if (ret == NULL) return;
|
||||
convert_from_python_drag_threshold(ret, opts);
|
||||
Py_DECREF(ret);
|
||||
}
|
||||
|
||||
static void
|
||||
convert_from_python_repaint_delay(PyObject *val, Options *opts) {
|
||||
opts->repaint_delay = parse_ms_long_to_monotonic_t(val);
|
||||
@@ -1575,6 +1588,8 @@ convert_opts_from_python_opts(PyObject *py_opts, Options *opts) {
|
||||
if (PyErr_Occurred()) return false;
|
||||
convert_from_opts_pointer_shape_when_dragging(py_opts, opts);
|
||||
if (PyErr_Occurred()) return false;
|
||||
convert_from_opts_drag_threshold(py_opts, opts);
|
||||
if (PyErr_Occurred()) return false;
|
||||
convert_from_opts_repaint_delay(py_opts, opts);
|
||||
if (PyErr_Occurred()) return false;
|
||||
convert_from_opts_input_delay(py_opts, opts);
|
||||
|
||||
Reference in New Issue
Block a user