about summary refs log tree commit diff stats
Commit message (Expand)AuthorAgeFilesLines
...
* readded border color, this sucks leastAnselm R.Garbe2006-08-105-14/+26
* drawing border with fg colorAnselm R.Garbe2006-08-101-1/+14
* removed unnecessary border colorAnselm R.Garbe2006-08-105-25/+0
* swapping my default colors (bg with fg)Anselm R.Garbe2006-08-101-2/+2
* made terminals darker, that is better indeedAnselm R.Garbe2006-08-101-1/+1
* disallow zoom on maximized clientsAnselm R.Garbe2006-08-104-21/+8
* added zoom on Mod1-Button1 on managed clients only (there is no moving possible)Anselm R.Garbe2006-08-091-0/+2
* removed NET_ACTIVE_WINDOW handlingAnselm R.Garbe2006-08-084-20/+1
* implemented NET_ACTIVE_WINDOW supportAnselm R.Garbe2006-08-084-1/+20
* fixed typoAnselm R.Garbe2006-08-081-1/+1
* it always takes a while until one sticks to a colorscheme, but this one feels...Anselm R.Garbe2006-08-081-1/+1
* default colors are bestAnselm R.Garbe2006-08-081-3/+3
* without borders it looks cleanerAnselm R.Garbe2006-08-081-2/+2
* red is easier to my eyes with ffffaa bgAnselm R.Garbe2006-08-081-2/+2
* using a better colorscheme (ffffaa is the best background for black)Anselm R.Garbe2006-08-081-2/+2
* applied Sanders tiny patchesAnselm R.Garbe2006-08-084-7/+8
* removed some "arg@10ksloc.org2006-08-071-4/+4
* I really only need 3 tagsarg@10ksloc.org2006-08-071-17/+11
* added a trailing '.' to shortcut descriptions in dwm(1)arg@10ksloc.org2006-08-071-15/+15
* changed signature of drawtextarg@10ksloc.org2006-08-071-12/+10
* applied grabbing-- and shell_minimalarg@10ksloc.org2006-08-072-9/+1
* updated screenshot sectionarg@10ksloc.org2006-08-071-1/+2
* changed font size, I'm not blind...arg@10ksloc.org2006-08-071-2/+2
* small fix of a commentarg@10ksloc.org2006-08-071-1/+1
* typo fixarg@10ksloc.org2006-08-071-1/+1
* applied Sanders man page/Makefile patcharg@10ksloc.org2006-08-072-2/+2
* settle with greyarg@10ksloc.org2006-08-071-2/+2
* next version is 0.8arg@10ksloc.org2006-08-071-1/+1
* made my colors tasting better with the backgroundarg@10ksloc.org2006-08-071-3/+3
* status box should have a border in my eyesarg@10ksloc.org2006-08-072-2/+2
* next attempt for w on black switcharg@10ksloc.org2006-08-071-4/+4
* Added tag 0.7 for changeset 3fb41412e2492f66476d92ce8f007a8b48fb1d2aarg@10ksloc.org2006-08-071-0/+1
* prepared dwm.html 0.7arg@10ksloc.org2006-08-071-3/+6
* added stripping to dwm target in Makefilearg@10ksloc.org2006-08-071-0/+1
* changed getproto, maybe that might fix the killclient issue reported on the listarg@10ksloc.org2006-08-071-2/+3
* applied endless loop prevention on zoom()arg@10ksloc.org2006-08-071-1/+3
* updated man pagearg@10ksloc.org2006-08-071-0/+2
* small fix of the last commitarg@10ksloc.org2006-08-051-1/+1
* using -Os again, zoom is ignored in floating mode or on floating clientsarg@10ksloc.org2006-08-052-2/+2
* mouse grab needs also to grab for combinations of numlock/lockmaskarg@10ksloc.org2006-08-051-0/+20
* slight fixarg@10ksloc.org2006-08-051-3/+2
* small performance tweak ;)arg@10ksloc.org2006-08-041-2/+4
* fixed xterm font change (all other related apps should work fine with this fi...arg@10ksloc.org2006-08-041-14/+12
* fixed view-change bug reported on the listarg@10ksloc.org2006-08-041-14/+10
* no need for -g anymore, regexp matching works nowarg@10ksloc.org2006-08-041-4/+4
* fixed dmenu link (thx to deifl)arg@10ksloc.org2006-08-041-1/+1
* switched to regexp matching for Rulesarg@10ksloc.org2006-08-046-31/+65
* fixed a bug in dmenu callarg@10ksloc.org2006-08-042-6/+3
* using execl now, argv changed, using cmd and const char defs directly in the ...arg@10ksloc.org2006-08-044-18/+18
* added dmenu to dwm.htmlarg@10ksloc.org2006-08-041-0/+4
lass="mi">-1] != '\n') return s+'\n'; return s; } }; trace_stream* Trace_stream = NULL; // Top-level helper. IMPORTANT: can't nest. #define trace(layer) !Trace_stream ? cerr /*print nothing*/ : Trace_stream->stream(layer) // Warnings should go straight to cerr by default since calls to trace() have // some unfriendly constraints (they delay printing, they can't nest) #define raise ((!Trace_stream || !Hide_warnings) ? cerr /*do print*/ : Trace_stream->stream("warn")) << __FILE__ << ":" << __LINE__ << " " // raise << die exits after printing -- unless Hide_warnings is set. struct die {}; ostream& operator<<(ostream& os, __attribute__((unused)) die) { if (Hide_warnings) return os; os << "dying\n"; exit(1); } #define CLEAR_TRACE delete Trace_stream, Trace_stream = new trace_stream; #define DUMP(layer) cerr << Trace_stream->readable_contents(layer) // Trace_stream is a resource, lease_tracer uses RAII to manage it. struct lease_tracer { lease_tracer() { Trace_stream = new trace_stream; } ~lease_tracer() { delete Trace_stream, Trace_stream = NULL; } }; #define START_TRACING_UNTIL_END_OF_SCOPE lease_tracer leased_tracer; bool check_trace_contents(string FUNCTION, string FILE, int LINE, string layer, string expected) { // empty layer == everything vector<string> expected_lines = split(expected, "\n"); size_t curr_expected_line = 0; while (curr_expected_line < expected_lines.size() && expected_lines[curr_expected_line].empty()) ++curr_expected_line; if (curr_expected_line == expected_lines.size()) return true; Trace_stream->newline(); ostringstream output; for (vector<pair<string, string> >::iterator p = Trace_stream->past_lines.begin(); p != Trace_stream->past_lines.end(); ++p) { if (!layer.empty() && layer != p->first) continue; if (p->second != expected_lines[curr_expected_line]) continue; ++curr_expected_line; while (curr_expected_line < expected_lines.size() && expected_lines[curr_expected_line].empty()) ++curr_expected_line; if (curr_expected_line == expected_lines.size()) return true; } ++Num_failures; cerr << "\nF " << FUNCTION << "(" << FILE << ":" << LINE << "): missing [" << expected_lines[curr_expected_line] << "] in trace:\n"; DUMP(layer); Passed = false; return false; } #define CHECK_TRACE_CONTENTS(...) check_trace_contents(__FUNCTION__, __FILE__, __LINE__, __VA_ARGS__) int trace_count(string layer, string line) { Trace_stream->newline(); long result = 0; for (vector<pair<string, string> >::iterator p = Trace_stream->past_lines.begin(); p != Trace_stream->past_lines.end(); ++p) { if (layer == p->first) if (line == "" || p->second == line) ++result; } return result; } #define CHECK_TRACE_WARNS() CHECK(trace_count("warn", "") > 0) #define CHECK_TRACE_DOESNT_WARN() \ if (trace_count("warn") > 0) { \ ++Num_failures; \ cerr << "\nF " << __FUNCTION__ << "(" << __FILE__ << ":" << __LINE__ << "): unexpected warnings\n"; \ DUMP("warn"); \ Passed = false; \ return; \ } bool trace_doesnt_contain(string layer, string line) { return trace_count(layer, line) == 0; } #define CHECK_TRACE_DOESNT_CONTAIN(...) CHECK(trace_doesnt_contain(__VA_ARGS__)) vector<string> split(string s, string delim) { vector<string> result; string::size_type begin=0, end=s.find(delim); while (true) { if (end == string::npos) { result.push_back(string(s, begin, string::npos)); break; } result.push_back(string(s, begin, end-begin)); begin = end+delim.size(); end = s.find(delim, begin); } return result; }