summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-01-12 23:52:37 (GMT)
committerfluxgen <fluxgen>2003-01-12 23:52:37 (GMT)
commit9716ff884eb4761d6851f11a63cece8dced0336b (patch)
treea577582d1b82519c6f699bc614f567949fa534b9 /src
parentd844c4c1cab9c9fcdf1dec9cafb0e44e173b6a72 (diff)
downloadfluxbox_lack-9716ff884eb4761d6851f11a63cece8dced0336b.zip
fluxbox_lack-9716ff884eb4761d6851f11a63cece8dced0336b.tar.bz2
fixed minor bug in scrollClientUp/down
Diffstat (limited to 'src')
-rw-r--r--src/Slit.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/Slit.cc b/src/Slit.cc
index 1b099e7..a6a76c3 100644
--- a/src/Slit.cc
+++ b/src/Slit.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Slit.cc,v 1.32 2003/01/12 17:56:15 fluxgen Exp $ 25// $Id: Slit.cc,v 1.33 2003/01/12 23:52:37 fluxgen Exp $
26 26
27#include "Slit.hh" 27#include "Slit.hh"
28 28
@@ -654,7 +654,6 @@ void Slit::reconfigure() {
654 y = 0; 654 y = 0;
655 655
656 { 656 {
657 cerr<<"Clients: "<<clientList.size()<<endl;
658 SlitClients::iterator it = clientList.begin(); 657 SlitClients::iterator it = clientList.begin();
659 SlitClients::iterator it_end = clientList.end(); 658 SlitClients::iterator it_end = clientList.end();
660 for (; it != it_end; ++it) { 659 for (; it != it_end; ++it) {
@@ -831,6 +830,9 @@ void Slit::shutdown() {
831} 830}
832 831
833void Slit::cycleClientsUp() { 832void Slit::cycleClientsUp() {
833 if (clientList.size() < 2)
834 return;
835
834 // rotate client list up, ie the first goes last 836 // rotate client list up, ie the first goes last
835 SlitClients::iterator it = clientList.begin(); 837 SlitClients::iterator it = clientList.begin();
836 SlitClient *client = *it; 838 SlitClient *client = *it;
@@ -840,6 +842,9 @@ void Slit::cycleClientsUp() {
840} 842}
841 843
842void Slit::cycleClientsDown() { 844void Slit::cycleClientsDown() {
845 if (clientList.size() < 2)
846 return;
847
843 // rotate client list down, ie the last goes first 848 // rotate client list down, ie the last goes first
844 SlitClient *client = clientList.back(); 849 SlitClient *client = clientList.back();
845 clientList.remove(client); 850 clientList.remove(client);