mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
Fix-up a few simple uses of client_current(): check CLIENT_ACTIVE flag
instead of relying on curcc.
This commit is contained in:
@ -250,10 +250,13 @@ xev_handle_buttonpress(XEvent *ee)
|
||||
static void
|
||||
xev_handle_buttonrelease(XEvent *ee)
|
||||
{
|
||||
struct client_ctx *cc;
|
||||
XButtonEvent *e = &ee->xbutton;
|
||||
struct client_ctx *cc;
|
||||
|
||||
if ((cc = client_current()) != NULL)
|
||||
group_toggle_membership_leave(cc);
|
||||
if ((cc = client_find(e->window)) != NULL) {
|
||||
if (cc->flags & CLIENT_ACTIVE)
|
||||
group_toggle_membership_leave(cc);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
Reference in New Issue
Block a user