cleanup beep_handler
This commit is contained in:
parent
fe1afee2ff
commit
7ed00e06e1
|
@ -133,10 +133,9 @@ static gboolean button_press_cb(VteTerminal *vte, GdkEventButton *event) {
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef URGENT_ON_BEEP
|
#ifdef URGENT_ON_BEEP
|
||||||
static void beep_handler(__attribute__((unused)) VteTerminal *vte, GtkWidget *window) {
|
static void beep_handler(__attribute__((unused)) VteTerminal *vte, GtkWindow *window) {
|
||||||
GtkWindow *gwin = GTK_WINDOW(window);
|
if (!gtk_window_is_active(window)) {
|
||||||
if (!gtk_window_is_active(gwin)) {
|
gtk_window_set_urgency_hint(window, TRUE);
|
||||||
gtk_window_set_urgency_hint(gwin, TRUE);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue