cvsimport

This commit is contained in:
okan
2014-01-03 14:23:50 +00:00
6 changed files with 69 additions and 47 deletions

View File

@ -246,7 +246,7 @@ xev_handle_buttonpress(XEvent *ee)
cc->sc = screen_fromroot(e->window);
}
(*mb->callback)(cc, e);
(*mb->callback)(cc, &mb->argument);
}
static void
@ -326,8 +326,11 @@ xev_handle_clientmessage(XEvent *ee)
{
XClientMessageEvent *e = &ee->xclient;
struct client_ctx *cc, *old_cc;
struct screen_ctx *sc;
if ((cc = client_find(e->window)) == NULL)
sc = screen_fromroot(e->window);
if ((cc = client_find(e->window)) == NULL && e->window != sc->rootwin)
return;
if (e->message_type == cwmh[WM_CHANGE_STATE] && e->format == 32 &&
@ -342,9 +345,16 @@ xev_handle_clientmessage(XEvent *ee)
client_ptrsave(old_cc);
client_ptrwarp(cc);
}
if (e->message_type == ewmh[_NET_WM_DESKTOP] && e->format == 32)
group_movetogroup(cc, e->data.l[0]);
if (e->message_type == ewmh[_NET_WM_STATE] && e->format == 32)
xu_ewmh_handle_net_wm_state_msg(cc,
e->data.l[0], e->data.l[1], e->data.l[2]);
if (e->message_type == ewmh[_NET_CURRENT_DESKTOP] && e->format == 32)
group_only(sc, e->data.l[0]);
}
static void