commit cbb603c5abff154923c58061861b88027caa19e0
parent 99df2d3c4d557fb213e0a6262ddc523dbf0b2d89
Author: Suraj N. Kurapati <sunaku@gmail.com>
Date: Sat, 16 Sep 2006 04:04:03 -0700
[project @ 60c9c4a0621847eb4dc692852fe67d567c915a06]
[project @ 99]
* Fixed ruby-ixp to be internally buffered for Ixp#read.
* Event loop now uses Ixp#read instead of *wmiir*.
* Already running configurations now correctly exit when another instance starts up.
Diffstat:
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/HISTORY b/HISTORY
@@ -4,6 +4,10 @@ This is a history of major changes to {my wmii configuration}[http://people.ucsc
* Added Wmii.get_view and Wmii.get_client methods, to further minimize hard-coded IXP file system paths. This will make it easier to upgrade to wmii-4 later on.
+* Fixed ruby-ixp to be internally buffered for Ixp#read.
+ * Event loop now uses Ixp#read instead of *wmiir*.
+ * Already running configurations now correctly exit when another instance starts up.
+
= 2006-09-14
diff --git a/wmiirc-config.rb b/wmiirc-config.rb
@@ -429,10 +429,9 @@ end
## WM event loop
begin
- # IXP::Client.new.open('/event') do |io| #io.read.chomp
- IO.popen 'wmiir read /event' do |io|
- while event = io.readline.chomp
- type, arg = event.split($;, 2)
+ IXP::Client.new.open('/event') do |io|
+ while event = io.read.chomp
+ type, arg = event.split(' ', 2)
case type.to_sym
when :Start