X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/045f707bf479ce03fc35f76ae397b1f5d93d9fda..0ce89525af77efe89d35cc4eb48945a57b9f08c0:/unix/pterm.c diff --git a/unix/pterm.c b/unix/pterm.c index 947e4411..4113e510 100644 --- a/unix/pterm.c +++ b/unix/pterm.c @@ -1332,9 +1332,16 @@ void sys_cursor(void *frontend, int x, int y) */ } +/* + * This is still called when mode==BELL_VISUAL, even though the + * visual bell is handled entirely within terminal.c, because we + * may want to perform additional actions on any kind of bell (for + * example, taskbar flashing in Windows). + */ void beep(void *frontend, int mode) { - gdk_beep(); + if (mode != BELL_VISUAL) + gdk_beep(); } int CharWidth(Context ctx, int uc)