diff options
Diffstat (limited to '')
| -rw-r--r-- | dwm.1 | 13 | ||||
| -rw-r--r-- | event.c | 19 |
2 files changed, 18 insertions, 14 deletions
| @@ -33,7 +33,7 @@ prints version information to standard output, then exits. | |||
| 33 | .SH USAGE | 33 | .SH USAGE |
| 34 | .TP | 34 | .TP |
| 35 | .B Mod1-Return | 35 | .B Mod1-Return |
| 36 | Zoom | 36 | Zoom current |
| 37 | .B window | 37 | .B window |
| 38 | to the | 38 | to the |
| 39 | .B master | 39 | .B master |
| @@ -92,12 +92,19 @@ to current | |||
| 92 | .B window. | 92 | .B window. |
| 93 | .TP | 93 | .TP |
| 94 | .B Mod1-Button1 | 94 | .B Mod1-Button1 |
| 95 | Moves current | 95 | Move current |
| 96 | .B window | 96 | .B window |
| 97 | while dragging. | 97 | while dragging. |
| 98 | .TP | 98 | .TP |
| 99 | .B Mod1-Button2 | ||
| 100 | Zoom current | ||
| 101 | .B window | ||
| 102 | to the | ||
| 103 | .B master | ||
| 104 | column. | ||
| 105 | .TP | ||
| 99 | .B Mod1-Button3 | 106 | .B Mod1-Button3 |
| 100 | Resizes current | 107 | Resize current |
| 101 | .B window | 108 | .B window |
| 102 | while dragging. | 109 | while dragging. |
| 103 | .SH CUSTOMIZATION | 110 | .SH CUSTOMIZATION |
| @@ -122,25 +122,22 @@ buttonpress(XEvent *e) | |||
| 122 | } | 122 | } |
| 123 | } | 123 | } |
| 124 | else if((c = getclient(ev->window))) { | 124 | else if((c = getclient(ev->window))) { |
| 125 | higher(c); | ||
| 125 | focus(c); | 126 | focus(c); |
| 126 | switch(ev->button) { | 127 | switch(ev->button) { |
| 127 | default: | 128 | default: |
| 128 | break; | 129 | break; |
| 129 | case Button1: | 130 | case Button1: |
| 130 | if(!c->ismax) { | 131 | if(!c->ismax && (arrange == dofloat || c->isfloat)) |
| 131 | if(arrange == dofloat || c->isfloat) { | 132 | movemouse(c); |
| 132 | higher(c); | 133 | break; |
| 133 | movemouse(c); | 134 | case Button2: |
| 134 | } | 135 | if(!c->ismax && arrange != dofloat && !c->isfloat) |
| 135 | else | 136 | zoom(NULL); |
| 136 | zoom(NULL); | ||
| 137 | } | ||
| 138 | break; | 137 | break; |
| 139 | case Button3: | 138 | case Button3: |
| 140 | if(!c->ismax && (arrange == dofloat || c->isfloat)) { | 139 | if(!c->ismax && (arrange == dofloat || c->isfloat)) |
| 141 | higher(c); | ||
| 142 | resizemouse(c); | 140 | resizemouse(c); |
| 143 | } | ||
| 144 | break; | 141 | break; |
| 145 | } | 142 | } |
| 146 | } | 143 | } |
