diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2010-06-01 15:39:57 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2010-06-01 16:04:43 +0200 |
commit | 19f52e51101e970aef1fe6ad9a73886fb8b79613 (patch) | |
tree | 481d490654fcbc6d502af6db056c7b64e7e84d3a | |
parent | db193a0c06cd836de923866d3725f93777f59c35 (diff) | |
download | urgent-19f52e51101e970aef1fe6ad9a73886fb8b79613.tar.gz urgent-19f52e51101e970aef1fe6ad9a73886fb8b79613.tar.xz urgent-19f52e51101e970aef1fe6ad9a73886fb8b79613.zip |
fixed errors if urgent is created while opening the window
-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) & } |