commit 4f097a4aaa2b4e2c2d380083663e9019001569b2
parent 3b70313799e1cfffa586a0f84bdd062c2448e081
Author: Suraj N. Kurapati <sunaku@gmail.com>
Date: Sat, 9 Sep 2006 01:01:51 -0700
[project @ ad2eb1e2031d8e33c0ef1fa8de3768d187fed325]
[project @ 39]
fix sending clients back to original view from temp view
Diffstat:
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/Wmii.rb b/Wmii.rb
@@ -216,7 +216,7 @@ class Wmii < IxpNode
# Returns a list of all selected clients in the current view. If there are no selected clients, then the currently focused client is returned in the list.
def selected_clients
list = current_view.areas.map do |a|
- a.clients.select do |c| c.selected? end
+ a.clients.select {|c| c.selected?}
end
list.flatten!
@@ -246,7 +246,7 @@ class Wmii < IxpNode
def attach_last_client
if a = View.new("/#{DETACHED_TAG}").areas.first
if c = a.clients.first
- c.tags = read('/view/name')
+ c.tags = current_view.name
end
end
end
diff --git a/wmiirc b/wmiirc
@@ -251,6 +251,7 @@ SHORTCUTS = {
WM.selected_clients.each do |c|
c.with_tags do
delete curView
+ push $` if empty?
end
end