wmiirc-rumai

git clone git://oldgit.suckless.org/wmiirc-rumai/
Log | Files | Refs | README | LICENSE

commit 37cd7d6b20dd350ee2eee85d9d6c55eef724ba68
parent 5b0db9a54aa160b7652e834c30abcfd506aafcd6
Author: Suraj N. Kurapati <sunaku@gmail.com>
Date:   Thu, 31 Aug 2006 07:50:01 -0700

[project @ f2abca8db6019c11fc5189de02c0ee751280ba1e]

[project @ 25]
rename  focus! -> focus ... it doesn't really change the state

Diffstat:
wmii.rb | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/wmii.rb b/wmii.rb @@ -159,7 +159,7 @@ class Wmii < IxpFile # Focuses the view with the given name. def focus_view aName - View.new("/#{aName}").focus! + View.new("/#{aName}").focus end # Focuses the client which has the given ID. @@ -168,9 +168,9 @@ class Wmii < IxpFile v.areas.each do |a| a.clients.each do |c| if c.index == aClientId - v.focus! - a.focus! - c.focus! + v.focus + a.focus + c.focus return end end @@ -416,7 +416,7 @@ class Wmii < IxpFile end # Puts focus on this region. - def focus! + def focus ['select', 'view'].each do |cmd| return if write "#{@path}/../ctl", "#{cmd} #{File.basename @path}" end