all repos — fluxbox @ 9716ff884eb4761d6851f11a63cece8dced0336b

custom fork of the fluxbox windowmanager

fixed minor bug in scrollClientUp/down
fluxgen fluxgen
commit

9716ff884eb4761d6851f11a63cece8dced0336b

parent

d844c4c1cab9c9fcdf1dec9cafb0e44e173b6a72

1 files changed, 7 insertions(+), 2 deletions(-)

jump to
M src/Slit.ccsrc/Slit.cc

@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Slit.cc,v 1.32 2003/01/12 17:56:15 fluxgen Exp $ +// $Id: Slit.cc,v 1.33 2003/01/12 23:52:37 fluxgen Exp $ #include "Slit.hh"

@@ -654,7 +654,6 @@ x = screen()->getBevelWidth();

y = 0; { - cerr<<"Clients: "<<clientList.size()<<endl; SlitClients::iterator it = clientList.begin(); SlitClients::iterator it_end = clientList.end(); for (; it != it_end; ++it) {

@@ -831,6 +830,9 @@ removeClient(clientList.front(), true, true);

} void Slit::cycleClientsUp() { + if (clientList.size() < 2) + return; + // rotate client list up, ie the first goes last SlitClients::iterator it = clientList.begin(); SlitClient *client = *it;

@@ -840,6 +842,9 @@ reconfigure();

} void Slit::cycleClientsDown() { + if (clientList.size() < 2) + return; + // rotate client list down, ie the last goes first SlitClient *client = clientList.back(); clientList.remove(client);