mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[kitty] add audio_bell patch
This commit is contained in:
parent
f2d12e2ebe
commit
c55c9af578
1 changed files with 16 additions and 0 deletions
16
kitty/patches/audio_bell.patch
Normal file
16
kitty/patches/audio_bell.patch
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
--- kitty/glfw.c 2019-07-29 07:15:02.000000000 +0300
|
||||||
|
+++ kitty/glfw.c 2019-08-01 23:38:47.259980678 +0300
|
||||||
|
@@ -842,13 +842,9 @@
|
||||||
|
double now = monotonic();
|
||||||
|
if (now - last_bell_at <= 0.1) return;
|
||||||
|
last_bell_at = now;
|
||||||
|
-#ifdef __APPLE__
|
||||||
|
if (w->handle) {
|
||||||
|
glfwWindowBell(w->handle);
|
||||||
|
}
|
||||||
|
-#else
|
||||||
|
- play_canberra_sound("bell", "kitty bell");
|
||||||
|
-#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
static PyObject*
|
Loading…
Reference in a new issue