diff options
| author | Anselm R. Garbe <garbeam@wmii.de> | 2006-07-15 18:11:14 +0200 |
|---|---|---|
| committer | Anselm R. Garbe <garbeam@wmii.de> | 2006-07-15 18:11:14 +0200 |
| commit | f60c597d653bd7eab6c620fc53d732ca75f6a880 (patch) | |
| tree | d7cc81bf3fbcea4b5c68b6d568fcb3fae6d5588b | |
| parent | sanitized other stuff (diff) | |
| download | dwm-f60c597d653bd7eab6c620fc53d732ca75f6a880.tar.gz dwm-f60c597d653bd7eab6c620fc53d732ca75f6a880.zip | |
changing XFlush into XSync
| -rw-r--r-- | dwm.h | 5 | ||||
| -rw-r--r-- | dwm.html | 6 | ||||
| -rw-r--r-- | event.c | 2 | ||||
| -rw-r--r-- | main.c | 4 |
4 files changed, 11 insertions, 6 deletions
| @@ -8,9 +8,14 @@ | |||
| 8 | /********** CUSTOMIZE **********/ | 8 | /********** CUSTOMIZE **********/ |
| 9 | 9 | ||
| 10 | #define FONT "-*-terminus-medium-*-*-*-13-*-*-*-*-*-iso10646-*" | 10 | #define FONT "-*-terminus-medium-*-*-*-13-*-*-*-*-*-iso10646-*" |
| 11 | #define BGCOLOR "#0a2c2d" | ||
| 12 | #define FGCOLOR "#ddeeee" | ||
| 13 | #define BORDERCOLOR "#176164" | ||
| 14 | /* | ||
| 11 | #define BGCOLOR "#666699" | 15 | #define BGCOLOR "#666699" |
| 12 | #define FGCOLOR "#eeeeee" | 16 | #define FGCOLOR "#eeeeee" |
| 13 | #define BORDERCOLOR "#9999CC" | 17 | #define BORDERCOLOR "#9999CC" |
| 18 | */ | ||
| 14 | #define MASTERW 52 /* percent */ | 19 | #define MASTERW 52 /* percent */ |
| 15 | #define WM_PROTOCOL_DELWIN 1 | 20 | #define WM_PROTOCOL_DELWIN 1 |
| 16 | 21 | ||
| @@ -74,9 +74,9 @@ | |||
| 74 | wmiir and what not... | 74 | wmiir and what not... |
| 75 | </li> | 75 | </li> |
| 76 | <li> | 76 | <li> |
| 77 | garbeam <b>does not</b> want any feedback to dwm. If you ask for support, | 77 | Anselm <b>does not</b> want any feedback to dwm. If you ask for support, |
| 78 | feature requests, or if you report bugs, they will be <b>ignored</b> | 78 | feature requests, or if you report bugs, they will be <b>ignored</b> |
| 79 | with a high chance. dwm is only intended to fit garbeams needs. | 79 | with a high chance. dwm is only intended to fit Anselms needs. |
| 80 | However you are free to download and distribute/relicense it, with the | 80 | However you are free to download and distribute/relicense it, with the |
| 81 | conditions of the <a href="http://wmii.de/cgi-bin/hgwebdir.cgi/dwm?f=f10eb1139362;file=LICENSE;style=raw">MIT/X Consortium license</a>. | 81 | conditions of the <a href="http://wmii.de/cgi-bin/hgwebdir.cgi/dwm?f=f10eb1139362;file=LICENSE;style=raw">MIT/X Consortium license</a>. |
| 82 | </li> | 82 | </li> |
| @@ -99,7 +99,7 @@ | |||
| 99 | <h3>Miscellaneous</h3> | 99 | <h3>Miscellaneous</h3> |
| 100 | <p> | 100 | <p> |
| 101 | You can purchase this <a href="https://www.spreadshirt.net/shop.php?op=article&article_id=3298632&view=403">tricot</a> | 101 | You can purchase this <a href="https://www.spreadshirt.net/shop.php?op=article&article_id=3298632&view=403">tricot</a> |
| 102 | if you like dwm and the dwm logo, which has been designed by garbeam. | 102 | if you like dwm and the dwm logo, which has been designed by Anselm. |
| 103 | </p> | 103 | </p> |
| 104 | <p><small>--Anselm (20060714)</small></p> | 104 | <p><small>--Anselm (20060714)</small></p> |
| 105 | </body> | 105 | </body> |
| @@ -128,7 +128,7 @@ buttonpress(XEvent *e) | |||
| 128 | Client *c; | 128 | Client *c; |
| 129 | 129 | ||
| 130 | if(barwin == ev->window) { | 130 | if(barwin == ev->window) { |
| 131 | x = (arrange == dofloat) ? textw("~") : 0; | 131 | x = 0; |
| 132 | for(a.i = 0; a.i < TLast; a.i++) { | 132 | for(a.i = 0; a.i < TLast; a.i++) { |
| 133 | x += textw(tags[a.i]); | 133 | x += textw(tags[a.i]); |
| 134 | if(ev->x < x) { | 134 | if(ev->x < x) { |
| @@ -204,12 +204,12 @@ main(int argc, char *argv[]) | |||
| 204 | XSetErrorHandler(xerrorstart); | 204 | XSetErrorHandler(xerrorstart); |
| 205 | /* this causes an error if some other WM is running */ | 205 | /* this causes an error if some other WM is running */ |
| 206 | XSelectInput(dpy, root, SubstructureRedirectMask); | 206 | XSelectInput(dpy, root, SubstructureRedirectMask); |
| 207 | XFlush(dpy); | 207 | XSync(dpy, False); |
| 208 | 208 | ||
| 209 | if(otherwm) | 209 | if(otherwm) |
| 210 | eprint("dwm: another window manager is already running\n"); | 210 | eprint("dwm: another window manager is already running\n"); |
| 211 | 211 | ||
| 212 | XSetErrorHandler(0); | 212 | XSetErrorHandler(NULL); |
| 213 | xerrorxlib = XSetErrorHandler(xerror); | 213 | xerrorxlib = XSetErrorHandler(xerror); |
| 214 | 214 | ||
| 215 | /* init atoms */ | 215 | /* init atoms */ |
