about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorarg@10ksloc.org <unknown>2006-08-01 15:16:29 +0200
committerarg@10ksloc.org <unknown>2006-08-01 15:16:29 +0200
commitb01a51a8449aa591a02ec22eb31850c2ae644687 (patch)
treee211a7a9d92774f4672dcd5951bcf41ab1608060
parent77f8c075c48e510e064b8f0b7b823a7e1f9f44b7 (diff)
downloaddwm-b01a51a8449aa591a02ec22eb31850c2ae644687.tar.gz
saved 2LOC
-rw-r--r--event.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/event.c b/event.c
index 99216b3..a34bdc8 100644
--- a/event.c
+++ b/event.c
@@ -116,12 +116,10 @@ buttonpress(XEvent *e)
 			}
 			break;
 		case Button4:
-			a.i = (tsel + 1 < TLast) ? tsel + 1 : 0;
-			view(&a);
+			viewnext(&a);
 			break;
 		case Button5:
-			a.i = (tsel - 1 >= 0) ? tsel - 1 : TLast - 1;
-			view(&a);
+			viewprev(&a);
 			break;
 		}
 	}
32 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173