comparison event.c @ 270:dacd3f3c5823

implemented restack behavior (floats are on top in tiled mode)
author Anselm R.Garbe <arg@10ksloc.org>
date Mon, 14 Aug 2006 10:18:24 +0200
parents a47b3b0d7bf4
children e9dc5a9f9480
comparison
equal deleted inserted replaced
269:bf6792e3e700 270:dacd3f3c5823
116 return; 116 return;
117 } 117 }
118 } 118 }
119 } 119 }
120 else if((c = getclient(ev->window))) { 120 else if((c = getclient(ev->window))) {
121 higher(c);
122 focus(c); 121 focus(c);
123 switch(ev->button) { 122 switch(ev->button) {
124 default: 123 default:
125 break; 124 break;
126 case Button1: 125 case Button1:
127 if(!c->ismax && (arrange == dofloat || c->isfloat)) 126 if(!c->ismax && (arrange == dofloat || c->isfloat)) {
127 restack(c);
128 movemouse(c); 128 movemouse(c);
129 }
129 break; 130 break;
130 case Button2: 131 case Button2:
131 zoom(NULL); 132 zoom(NULL);
132 break; 133 break;
133 case Button3: 134 case Button3:
134 if(!c->ismax && (arrange == dofloat || c->isfloat)) 135 if(!c->ismax && (arrange == dofloat || c->isfloat)) {
136 restack(c);
135 resizemouse(c); 137 resizemouse(c);
138 }
136 break; 139 break;
137 } 140 }
138 } 141 }
139 } 142 }
140 143