changeset: 2002:6631877cbc7d
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Mon Mar 05 14:56:36 2007 -0500
summary: Fix some resize cursor bugs.
diff -r bacd8e8a5574 -r 6631877cbc7d event.c
--- a/event.c Mon Mar 05 01:11:12 2007 -0500
+++ b/event.c Mon Mar 05 14:56:36 2007 -0500
@@ -175,19 +175,23 @@ enternotify(XEvent *e) {
return;
if((c = client_of_win(ev->window))) {
- if(ev->detail != NotifyInferior && screen->focus != c) {
- if(verbose)
- fprintf(stderr, "enter_notify(c) => %s\n", c->name);
- focus(c, False);
+ if(ev->detail != NotifyInferior) {
+ if(screen->focus != c) {
+ if(verbose)
+ fprintf(stderr, "enter_notify(c) => %s\n", c->name);
+ focus(c, False);
+ }
set_cursor(c, cursor[CurNormal]);
}else if(verbose)
fprintf(stderr, "enter_notify(c[NotifyInferior]) => %s\n", c->name);
}
- else if((f = frame_of_win(ev->window)) && screen->focus != c) {
- if(verbose)
- fprintf(stderr, "enter_notify(f) => %s\n", f->client->name);
- if(f->area->floating || !f->collapsed)
- focus(f->client, False);
+ else if((f = frame_of_win(ev->window))) {
+ if(screen->focus != c) {
+ if(verbose)
+ fprintf(stderr, "enter_notify(f) => %s\n", f->client->name);
+ if(f->area->floating || !f->collapsed)
+ focus(f->client, False);
+ }
set_frame_cursor(f, ev->x, ev->y);
}
else if(ev->window == blz.root) {
Received on Mon Mar 05 2007 - 21:01:09 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:56:12 UTC