Mercurial > dwm-meillo
comparison event.c @ 239:e5390f8e06b9
applied sumik's multihead patch
author | Anselm R.Garbe <arg@10ksloc.org> |
---|---|
date | Thu, 10 Aug 2006 11:26:32 +0200 |
parents | 969fb6be25e1 |
children | 1227c21588e2 |
comparison
equal
deleted
inserted
replaced
238:969fb6be25e1 | 239:e5390f8e06b9 |
---|---|
112 break; | 112 break; |
113 } | 113 } |
114 } | 114 } |
115 break; | 115 break; |
116 case Button4: | 116 case Button4: |
117 viewprev(&a); | |
118 break; | |
119 case Button5: | |
117 viewnext(&a); | 120 viewnext(&a); |
118 break; | |
119 case Button5: | |
120 viewprev(&a); | |
121 break; | 121 break; |
122 } | 122 } |
123 } | 123 } |
124 else if((c = getclient(ev->window))) { | 124 else if((c = getclient(ev->window))) { |
125 higher(c); | 125 higher(c); |
224 if(ev->mode != NotifyNormal || ev->detail == NotifyInferior) | 224 if(ev->mode != NotifyNormal || ev->detail == NotifyInferior) |
225 return; | 225 return; |
226 | 226 |
227 if((c = getclient(ev->window)) || (c = getctitle(ev->window))) | 227 if((c = getclient(ev->window)) || (c = getctitle(ev->window))) |
228 focus(c); | 228 focus(c); |
229 else if(ev->window == root) | 229 else if(ev->window == root) { |
230 issel = True; | 230 issel = True; |
231 XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); | |
232 drawall(); | |
233 } | |
231 } | 234 } |
232 | 235 |
233 static void | 236 static void |
234 expose(XEvent *e) | 237 expose(XEvent *e) |
235 { | 238 { |
265 static void | 268 static void |
266 leavenotify(XEvent *e) | 269 leavenotify(XEvent *e) |
267 { | 270 { |
268 XCrossingEvent *ev = &e->xcrossing; | 271 XCrossingEvent *ev = &e->xcrossing; |
269 | 272 |
270 if((ev->window == root) && !ev->same_screen) | 273 if((ev->window == root) && !ev->same_screen) { |
271 issel = True; | 274 issel = False; |
275 drawall(); | |
276 } | |
272 } | 277 } |
273 | 278 |
274 static void | 279 static void |
275 maprequest(XEvent *e) | 280 maprequest(XEvent *e) |
276 { | 281 { |