aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2010-06-01 15:39:57 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2010-06-01 16:04:43 +0200
commit19f52e51101e970aef1fe6ad9a73886fb8b79613 (patch)
tree481d490654fcbc6d502af6db056c7b64e7e84d3a
parentdb193a0c06cd836de923866d3725f93777f59c35 (diff)
downloadurgent-19f52e51101e970aef1fe6ad9a73886fb8b79613.tar.gz
urgent-19f52e51101e970aef1fe6ad9a73886fb8b79613.tar.xz
urgent-19f52e51101e970aef1fe6ad9a73886fb8b79613.zip
fixed errors if urgent is created while opening the window
-rw-r--r--urgent.tcl4
1 files changed, 2 insertions, 2 deletions
diff --git a/urgent.tcl b/urgent.tcl
index fb3de51..2d5ce6e 100644
--- a/urgent.tcl
+++ b/urgent.tcl
@@ -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) &
}