about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--dwm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dwm.c b/dwm.c
index 053984d..0e72c47 100644
--- a/dwm.c
+++ b/dwm.c
@@ -259,7 +259,7 @@ applyrules(Client *c) {
 	XGetClassHint(dpy, c->win, &ch);
 	for(i = 0; i < LENGTH(rules); i++) {
 		r = &rules[i];
-		if(r->title && strstr(c->name, r->title)
+		if((r->title && strstr(c->name, r->title))
 		|| (ch.res_class && r->class && strstr(ch.res_class, r->class))
 		|| (ch.res_name && r->instance && strstr(ch.res_name, r->instance)))
 		{
@@ -860,7 +860,7 @@ unsigned int
 idxoftag(const char *t) {
 	unsigned int i;
 
-	for(i = 0; (i < LENGTH(tags)) && strcmp(tags[i], t); i++);
+	for(i = 0; (i < LENGTH(tags)) && t && strcmp(tags[i], t); i++);
 	return (i < LENGTH(tags)) ? i : 0;
 }
 
0b9129ceec0a9108464b28'>405b86068
f8dd74a07 ^
47886978c ^
f8dd74a07 ^


674c05f42 ^
c617479c6 ^
674c05f42 ^
47886978c ^
405b86068
c617479c6 ^
f8dd74a07 ^

3b7ef2288 ^



f8dd74a07 ^
c617479c6 ^

15440ec74 ^
538b06a12 ^

196ef92c8 ^



405b86068



f46870fe1 ^
405b86068

c617479c6 ^



196ef92c8 ^
405b86068
3d4084208 ^
3b7ef2288 ^
9f9f0f081 ^
5e5e4abfe ^
6023e994f ^
7ebaf4489 ^
c25ffbf26 ^
1d14cb1ad ^
196ef92c8 ^
c617479c6 ^
fc9fdc2b9 ^

053309e60 ^
76235348f ^
405b86068
1dc362dcd ^

196ef92c8 ^

053309e60 ^
8b2a9401a ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
                  
                                                                 

                                                               

                                                                   
                                                                      
                                                                         
                                                              
                                                   
                                                                          
                                                                      


                                                                        
                                                                     
                                                            
                                                                     
 
                 
                                                       

                                                   



                                                          
                                                       

                                                                
                                                                 

                                                                       



                                                                        



                                                                               
                                                                

                                                            



                                                                          
                                                              
                                                              
                                                             
                                                                
                                                       
                                                                      
                                                  
                                                                   
                                                                        
                                                        
                                                                      
                                                                     

                                                                            
                                                                 
                                                             
                                                       

                                                                        

                                                                               
                                                                            

                                                                       
Advanced commands:
  //compileToC, cc          compile project with C code generator
  //compileToCpp, cpp       compile project to C++ code
  //compileToOC, objc       compile project to Objective C code
  //rst2html                convert a reStructuredText file to HTML
  //rst2tex                 convert a reStructuredText file to TeX
  //buildIndex              build an index for the whole documentation
  //run                     run the project (with Tiny C backend; buggy!)
  //genDepend               generate a DOT file containing the
                            module dependency graph
  //dump                    dump all defined conditionals and search paths
  //check                   checks the project for syntax and semantic
  //idetools                compiler support for IDEs: possible options:
    --track:FILE,LINE,COL   track a file/cursor position
    --suggest               suggest all possible symbols at position
    --def                   list all possible definitions at position
    --context               list possible invokation context
    --usages                list all usages of the symbol at position

Advanced options:
  -m, --mainmodule:FILE     set the project main module
  -o, --out:FILE            set the output filename
  --stdout                  output to stdout
  -w, --warnings:on|off     turn all warnings on|off
  --warning[X]:on|off       turn specific warning X on|off
  --hints:on|off            turn all hints on|off
  --hint[X]:on|off          turn specific hint X on|off
  --lib:PATH                set the system library path
  --import:PATH             add an automatically imported module
  --include:PATH            add an automatically included module
  --nimcache:PATH           set the path used for generated files
  --header:FILE             the compiler should produce a .h file (FILE
                            is optional)
  -c, --compileOnly         compile only; do not assemble or link
  --noLinking               compile but do not link
  --noMain                  do not generate a main procedure
  --genScript               generate a compile script (in the 'nimcache'
                            subdirectory named 'compile_$project$scriptext')
  --os:SYMBOL               set the target operating system (cross-compilation)
  --cpu:SYMBOL              set the target processor (cross-compilation)
  --debuginfo               enables debug information
  --debugger:on|off         turn Embedded Nimrod Debugger on|off
  -t, --passc:OPTION        pass an option to the C compiler
  -l, --passl:OPTION        pass an option to the linker
  --cincludes:DIR           modify the C compiler header search path
  --clibdir:DIR             modify the linker library search path
  --clib:LIBNAME            link an additional C library
                            (you should omit platform-specific extensions)
  --genMapping              generate a mapping file containing
                            (Nimrod, mangled) identifier pairs
  --project                 document the whole project (doc2)
  --lineDir:on|off          generation of #line directive on|off
  --threadanalysis:on|off   turn thread analysis on|off
  --tlsEmulation:on|off     turn thread local storage emulation on|off
  --taintMode:on|off        turn taint mode on|off
  --symbolFiles:on|off      turn symbol files on|off (experimental)
  --implicitStatic:on|off   turn implicit compile time evaluation on|off
  --patterns:on|off         turn pattern matching on|off
  --skipCfg                 do not read the general configuration file
  --skipUserCfg             do not read the user's configuration file
  --skipParentCfg           do not read the parent dirs' configuration files
  --skipProjCfg             do not read the project's configuration file
  --gc:refc|boehm|none      use Nimrod's native GC|Boehm GC|no GC
  --index:on|off            turn index file generation on|off
  --putenv:key=value        set an environment variable
  --babelPath:PATH          add a path for Babel support
  --excludePath:PATH        exclude a path from the list of search paths
  --listCmd                 list the commands used to execute external programs
  --parallelBuild=0|1|...   perform a parallel build
                            value = number of processors (0 for auto-detect)
  --verbosity:0|1|2|3       set Nimrod's verbosity level (0 is default)
  -v, --version             show detailed version information