wmiirc-rumai

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

commit 7f3384843bd2b0f695ecd88b850fa69b3eed50b0
parent db6bd422cbfd0c38c45ecd7c0871d9ce98907f0c
Author: Suraj N. Kurapati <sunaku@gmail.com>
Date:   Fri, 29 Sep 2006 07:32:43 -0700

[project @ da64839d437fb4ac45dc5c60db6630ba2b05b468]

fix toggle_maximize was getting 'file not found' error

Diffstat:
HISTORY | 8+++++++-
fs.rb | 1-
rc.rb | 2+-
3 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/HISTORY b/HISTORY @@ -1,9 +1,15 @@ This is a history of major changes to {my wmii configuration}[http://people.ucsc.edu/~skurapat/wmii.html]. += 2006-09-29 + +* Fixed bug in toggle_maximize method (in rc.rb) due to accessing a nonexistent file in IXP file system. + * Thanks to Christian von Mueffling for reporting this bug. + + = 2006-09-28 -* Added number_view_buttons method, in rc.rb, which numbers the view buttons displayed on the bar, from left to right. +* Added number_view_buttons method (in rc.rb) which numbers the view buttons displayed on the bar, from left to right. = 2006-09-27 diff --git a/fs.rb b/fs.rb @@ -1,7 +1,6 @@ # Abstractions for wmii's {IXP file system}[http://wmii.de/contrib/guide/wmii-3/guide-en/guide_en/node9.html] interface. =begin Copyright 2006 Suraj N. Kurapati - Copyright 2006 Stephan Maka This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License diff --git a/rc.rb b/rc.rb @@ -141,7 +141,7 @@ def toggle_maximize src.ctl = 'sendto toggle' dst = Wmii.current_view[0].sel - if dst.index == srcId + if dst.exist? && dst.index == srcId dst.geom = '0 0 east south' end end