[Tkabber-dev] r210 - trunk/plugins/urgent

tkabber-svn at jabber.ru tkabber-svn at jabber.ru
Wed Apr 8 04:19:48 MSD 2009


Author: kostix
Date: 2009-04-08 04:19:48 +0400 (Wed, 08 Apr 2009)
New Revision: 210

Modified:
   trunk/plugins/urgent/TODO
Log:
Update TODO list

Modified: trunk/plugins/urgent/TODO
===================================================================
--- trunk/plugins/urgent/TODO	2009-04-08 00:07:44 UTC (rev 209)
+++ trunk/plugins/urgent/TODO	2009-04-08 00:19:48 UTC (rev 210)
@@ -1,6 +1,29 @@
-Looks like under certain circumstances got_focus_hook
- can be fired earlier than open_chat_post_hook,
- and its handler fails because it looks at the per-chat
- state open_chat_post_hook handler initializes.
- A workaround is needed.
+* Reaction on "personal" messages should take into account
+  groupchat "highlights" as well as private chat messages.
+  This possibly could be accomplished by hooking not
+  the drawing of messages by some event which is generated
+  when a chat tab/window title is updated.
 
+* Sometimes, it looks like the urgency flag is not dropped
+  when a (toplevel) chat window seemingly gets focus.
+  The reason *might* be a race condition between two
+  parallel copies of `urgent`, of which one tries to
+  clear the urgency flag, and another one tries to set it.
+
+  The only sensible way to prevent such race conditions
+  seems to be turning `urgent` into a Tcl extension.
+
+  Another way could be to not just [exec ... &] the `urgent`
+  binary, but read its stdout asynchronously while queueing
+  urgency flag manipulation requests.
+  This seems compilcated though.
+
+  Yet another possible solution is to make `urgent` read
+  the flag manipulation commands on its stdin continuously.
+  Then we could permanently spawn just one copy of `urgent`
+  at startup and feed it with commands.
+  Serialization of commands would happen automatically
+  while maintaining good speed of processing.
+
+* Think about turning `urgent` into a Tcl package.
+



More information about the Tkabber-dev mailing list