commit cd4a6211a0a969e7327568016073128be15c0bf6
parent 933c03ff14738ca3334eb67991ea2b13138b0c66
Author: Suraj N. Kurapati <sunaku@gmail.com>
Date: Thu, 14 Sep 2006 06:21:58 -0700
[project @ f3d21712737e748c918ecb840cec5ccc167f0444]
[project @ 92]
fix multiple client termination code.. must be sorted by index first
Diffstat:
2 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/HISTORY b/HISTORY
@@ -3,10 +3,6 @@ This is a history of major changes to {my wmii configuration}[http://people.ucsc
= 2006-09-13
-* Added Wmii::View#diamond! -- a diamond-shaped automated client arrangement.
-
-* Added Wmii::Area#length= for setting number of clients in a column.
-
* Reverted to *wmiir* for event loop, because Ixp#read isn't internally buffered!
* Changed Wmii::View#each to Wmii::View#each_column because floating area isn't a column (it doesn't have /mode file).
@@ -15,12 +11,18 @@ This is a history of major changes to {my wmii configuration}[http://people.ucsc
* Added shortcuts for selection of current column.
+* Fixed ability to terminate multiple clients.
+
= 2006-09-12
* Event loop now uses Ixp#read instead of *wmiir*.
* Already running configurations now correctly exit when another instance starts up.
+* Added Wmii::View#diamond! -- a diamond-shaped automated client arrangement.
+
+* Added Wmii::Area#length= for setting number of clients in a column.
+
= 2006-09-11
diff --git a/wmiirc-config.rb b/wmiirc-config.rb
@@ -280,7 +280,7 @@ SHORTCUTS = {
# you delete the first client (index 1).
# now, wmii reorders the client indices: [1, 2]
# that is why we must go in reverse!
- Wmii.selected_clients.reverse.each do |c|
+ Wmii.selected_clients.sort {|a, b| a.index.to_i <=> b.index.to_i}.reverse.each do |c|
c.ctl = 'kill'
end
end,