summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dwm.113
-rw-r--r--event.c19
2 files changed, 18 insertions, 14 deletions
diff --git a/dwm.1 b/dwm.1
index a411978..96dd8d3 100644
--- a/dwm.1
+++ b/dwm.1
@@ -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
36Zoom 36Zoom current
37.B window 37.B window
38to the 38to 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
95Moves current 95Move current
96.B window 96.B window
97while dragging. 97while dragging.
98.TP 98.TP
99.B Mod1-Button2
100Zoom current
101.B window
102to the
103.B master
104column.
105.TP
99.B Mod1-Button3 106.B Mod1-Button3
100Resizes current 107Resize current
101.B window 108.B window
102while dragging. 109while dragging.
103.SH CUSTOMIZATION 110.SH CUSTOMIZATION
diff --git a/event.c b/event.c
index 0f984f2..36d873f 100644
--- a/event.c
+++ b/event.c
@@ -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 }