about summary refs log tree commit diff stats
path: root/dwm.c
Commit message (Expand)AuthorAgeFilesLines
...
* applied Frederik Ternerot's grabbuttons patch with slight modificationsAnselm R Garbe2008-07-011-9/+8
* locale updateAnselm R Garbe2008-06-301-1/+3
* fix of monocleAnselm R Garbe2008-06-221-1/+1
* another mergeAnselm R Garbe2008-06-221-2/+2
|\
| * fixed Gottox' buttonpress/ClkTagBar codeAnselm R Garbe2008-06-211-2/+2
* | does this fix anything?Anselm R Garbe2008-06-221-1/+1
|/
* applied Gottox' ClkTagBar patchAnselm R Garbe2008-06-201-9/+11
* made arrange again like it was onceAnselm R Garbe2008-06-191-15/+15
* fixAnselm R Garbe2008-06-191-1/+1
* use sel instead of seeking the listAnselm R Garbe2008-06-191-7/+5
* resize should apply if !bannedAnselm R Garbe2008-06-191-3/+2
* applied Gottox patchAnselm R Garbe2008-06-191-25/+21
* untested monocleAnselm R Garbe2008-06-191-37/+35
* non-zeroAnselm R Garbe2008-06-191-2/+10
* tiled layout resizehints should be respected by defaultAnselm R Garbe2008-06-171-3/+3
* restored y-coordinate fixing of client windowsAnselm R Garbe2008-06-171-1/+2
* minor fixes towards 5.0Anselm R Garbe2008-06-151-6/+8
* removed explicit warp in movemouseAnselm R Garbe2008-06-141-5/+0
* removed the ButtonPressMask for root windows as wellAnselm R Garbe2008-06-141-1/+1
* removed root window click handlingAnselm R Garbe2008-06-141-2/+2
* removed font and color definitionsAnselm R Garbe2008-06-141-10/+8
* fixed tag click handling, however ClkRootWin doesn't work for meAnselm R Garbe2008-06-121-6/+7
* some bugfixes of the patch application yesterdayAnselm R Garbe2008-06-121-12/+12
* integrated yiyus mouse.diff (though the bar click handling is slightly broken...Anselm R Garbe2008-06-111-49/+52
* made Xinerama screen index customizableAnselm R Garbe2008-06-111-4/+4
* removed trailing spaces reported by SoleenAnselm R Garbe2008-06-111-3/+3
* crash fixAnselm R Garbe2008-06-111-1/+1
* made lt visible again in config.def.hAnselm R Garbe2008-06-111-3/+2
* added nsz' patchAnselm R Garbe2008-06-111-1/+0
* added SHCMD support for pipe-based commands due the new spawn() versioAnselm R Garbe2008-06-111-0/+1
* using foo layout during cleanup (suggested by Gottox), add Arg->v handling fo...Anselm R Garbe2008-06-111-1/+1
* lt will point to a foo-layout during cleanup now (Gottox' suggestion), and to...Anselm R Garbe2008-06-111-1/+6
* integrated Peter Hartlich's patch, removed const char *c from union, simplifi...Anselm R Garbe2008-06-111-22/+5
* applied anydot's patchset.diffAnselm R Garbe2008-06-111-174/+169
* final version -- Gottox verified it using the test driverarg@suckless.org2008-06-091-1/+1
* revert of introduced problemarg@suckless.org2008-06-091-1/+1
* applied nsz' textnw patch thank youarg@suckless.org2008-06-091-4/+6
* updated the for-loop with Gottox' proposalarg@suckless.org2008-06-091-1/+1
* minor changearg@suckless.org2008-06-061-2/+1
* applied nsz's patches (many thanks!)arg@suckless.org2008-06-041-7/+4
* small change to drawtextarg@suckless.org2008-06-021-4/+3
* fixed the tile() issue with xpdfAnselm R Garbe2008-06-011-2/+2
* using anydot's memcpy-approach in drawtext, however it still looks awkward to meAnselm R Garbe2008-06-011-1/+1
* Gottox' drawtext simplificationAnselm R Garbe2008-06-011-8/+2
* applied noviewprev.diff, fix.diff and unusedflags.diffAnselm R Garbe2008-06-011-23/+16
* fixAnselm R Garbe2008-05-311-1/+1
* lt->arrange in mfactAnselm R Garbe2008-05-311-1/+1
* isfixed implies isfloatingAnselm R Garbe2008-05-301-1/+1
* applied nibbles fixes, slightly modifiedAnselm R Garbe2008-05-291-2/+2
* applied yiyus tip patch from tueAnselm R Garbe2008-05-291-24/+24
a title='author Araq <rumpf_a@web.de> 2012-10-05 09:52:40 +0200 committer Araq <rumpf_a@web.de> 2012-10-05 09:52:40 +0200 code cleanup of caas' href='/ahoang/Nim/commit/compiler/nimrod.nim?h=devel&id=01dfcf63106fb18239a1c6dabf551405c33b6e7e'>01dfcf631 ^
fe285b354 ^
3b38ceac2 ^





438703f59 ^
3b38ceac2 ^
01dfcf631 ^
e25474154 ^
4aba7421f ^

65fdd641a ^
3d7abb958 ^
65fdd641a ^

b731e6ef1 ^
1e26047c3 ^

2df9b442c ^
1e26047c3 ^
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88


                               
                                         




                                                   




                                       
 


                                                                     
 


                     
                                               

                                             
 





                                       
 
                      
                       
                           
       
                                     
                                
                          
          
                                                     
                 



                                     
         
                                    
                                                      

                                                                           
                       

                                
                                                
                             



                               
                                  
                                  
                              
                                                                               
                                                                     
             





                                                                       
                                                                       
                                      
                                                           
 

                             
 
                                                              

                                                        
                      

                           
                 
                                    
#
#
#           The Nimrod Compiler
#        (c) Copyright 2013 Andreas Rumpf
#
#    See the file "copying.txt", included in this
#    distribution, for details about the copyright.
#

when defined(gcc) and defined(windows):
  when defined(x86):
    {.link: "icons/nimrod.res".}
  else:
    {.link: "icons/nimrod_icon.o".}

import
  commands, lexer, condsyms, options, msgs, nversion, nimconf, ropes,
  extccomp, strutils, os, osproc, platform, main, parseopt, service

when hasTinyCBackend:
  import tccgen

when defined(profiler) or defined(memProfiler):
  {.hint: "Profiling support is turned on!".}
  import nimprof

proc prependCurDir(f: string): string =
  when defined(unix):
    if os.isAbsolute(f): result = f
    else: result = "./" & f
  else:
    result = f

proc handleCmdLine() =
  if paramCount() == 0:
    writeCommandLineUsage()
  else:
    # Process command line arguments:
    processCmdLine(passCmd1, "")
    if gProjectName != "":
      try:
        gProjectFull = canonicalizePath(gProjectName)
      except EOS:
        gProjectFull = gProjectName
      var p = splitFile(gProjectFull)
      gProjectPath = p.dir
      gProjectName = p.name
    else:
      gProjectPath = getCurrentDir()
    loadConfigs(DefaultConfig) # load all config files
    # now process command line arguments again, because some options in the
    # command line can overwite the config file's settings
    extccomp.initVars()
    processCmdLine(passCmd2, "")
    mainCommand()
    if gVerbosity >= 2: echo(GC_getStatistics())
    #echo(GC_getStatistics())
    if msgs.gErrorCounter == 0:
      when hasTinyCBackend:
        if gCmd == cmdRun:
          tccgen.run()
      if optRun in gGlobalOptions:
        if gCmd == cmdCompileToJS:
          var ex = quoteShell(
            completeCFilePath(changeFileExt(gProjectFull, "js").prependCurDir))
          execExternalProgram("node " & ex & ' ' & service.arguments)
        else:
          var binPath: string
          if options.outFile.len > 0:
            # If the user specified an outFile path, use that directly.
            binPath = options.outFile.prependCurDir
          else:
            # Figure out ourselves a valid binary name.
            binPath = changeFileExt(gProjectFull, ExeExt).prependCurDir
          var ex = quoteShell(binPath)
          execExternalProgram(ex & ' ' & service.arguments)

when defined(GC_setMaxPause):
  GC_setMaxPause 2_000

when compileOption("gc", "v2") or compileOption("gc", "refc"):
  # the new correct mark&sweet collector is too slow :-/
  GC_disableMarkAndSweep()
condsyms.initDefines()

when not defined(selftest):
  handleCmdLine()
  quit(int8(msgs.gErrorCounter > 0))