equal
deleted
inserted
replaced
1 /* See LICENSE file for copyright and license details. */ |
1 /* See LICENSE file for copyright and license details. */ |
2 #include "dwm.h" |
2 #include "dwm.h" |
3 #include <regex.h> |
3 #include <regex.h> |
4 #include <stdio.h> |
4 #include <stdio.h> |
5 #include <stdlib.h> |
5 #include <stdlib.h> |
|
6 #include <string.h> |
6 #include <X11/Xutil.h> |
7 #include <X11/Xutil.h> |
7 |
8 |
8 /* static */ |
9 /* static */ |
9 |
10 |
10 typedef struct { |
11 typedef struct { |
243 if(++ltidx == nlayouts) |
244 if(++ltidx == nlayouts) |
244 ltidx = 0;; |
245 ltidx = 0;; |
245 } |
246 } |
246 else { |
247 else { |
247 for(i = 0; i < nlayouts; i++) |
248 for(i = 0; i < nlayouts; i++) |
248 if(arg == layouts[i].symbol) |
249 if(!strcmp(arg, layouts[i].symbol)) |
249 break; |
250 break; |
250 if(i == nlayouts) |
251 if(i == nlayouts) |
251 return; |
252 return; |
252 ltidx = i; |
253 ltidx = i; |
253 } |
254 } |