equal
deleted
inserted
replaced
140 higher(c); |
140 higher(c); |
141 resizemouse(c); |
141 resizemouse(c); |
142 } |
142 } |
143 break; |
143 break; |
144 } |
144 } |
145 } |
|
146 } |
|
147 |
|
148 static void |
|
149 clientmessage(XEvent *e) |
|
150 { |
|
151 Client *c; |
|
152 XClientMessageEvent *ev = &e->xclient; |
|
153 |
|
154 if(ev->message_type == netatom[NetActiveWindow]) { |
|
155 if((c = getclient(ev->window)) && c->tags[tsel]) |
|
156 focus(c); |
|
157 } |
145 } |
158 } |
146 } |
159 |
147 |
160 static void |
148 static void |
161 configurerequest(XEvent *e) |
149 configurerequest(XEvent *e) |
349 |
337 |
350 /* extern */ |
338 /* extern */ |
351 |
339 |
352 void (*handler[LASTEvent]) (XEvent *) = { |
340 void (*handler[LASTEvent]) (XEvent *) = { |
353 [ButtonPress] = buttonpress, |
341 [ButtonPress] = buttonpress, |
354 [ClientMessage] = clientmessage, |
|
355 [ConfigureRequest] = configurerequest, |
342 [ConfigureRequest] = configurerequest, |
356 [DestroyNotify] = destroynotify, |
343 [DestroyNotify] = destroynotify, |
357 [EnterNotify] = enternotify, |
344 [EnterNotify] = enternotify, |
358 [LeaveNotify] = leavenotify, |
345 [LeaveNotify] = leavenotify, |
359 [Expose] = expose, |
346 [Expose] = expose, |