diff options
Diffstat (limited to 'urgent.tcl')
-rw-r--r-- | urgent.tcl | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -137,7 +137,7 @@ proc urgent::set_urgency_hint {chatid} { variable options variable state - if {!$state(active,$chatid)} { + if {[info exists state(xwinid,$chatid)]} { exec $options(program) -set $state(xwinid,$chatid) & set state(active,$chatid) true } @@ -150,7 +150,7 @@ proc urgent::clear_urgency_hint {winid} { variable options variable state - if {$state(active,$chatid)} { + if {[info exists state(xwinid,$chatid)]} { set state(active,$chatid) false exec $options(program) -clear $state(xwinid,$chatid) & } |