Re: [hackers] [dwm] rm buttons || Daniel Cousens

From: Anselm Garbe <garbeam_AT_gmail.com>
Date: Wed, 11 Oct 2017 10:26:48 +0200

Please ignore, already dropped.

On 11 October 2017 at 09:19, <git_AT_suckless.org> wrote:
> commit f6320488f94fe83a68eb8f7f052e3e84ed2ef5f7
> Author: Daniel Cousens <github_AT_dcousens.com>
> AuthorDate: Wed Oct 11 07:50:47 2017 +1100
> Commit: Daniel Cousens <github_AT_dcousens.com>
> CommitDate: Wed Oct 11 07:55:14 2017 +1100
>
> rm buttons
>
> diff --git a/config.def.h b/config.def.h
> index 74b8b60..3a32b11 100644
> --- a/config.def.h
> +++ b/config.def.h
> _AT_@ -89,10 +89,3 @@ static Key keys[] = {
> TAGKEYS(XK_minus, 10)
> TAGKEYS(XK_equal, 11)
> };
> -
> -/* button definitions */
> -/* click can be ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
> -static Button buttons[] = {
> - /* click event mask button function argument */
> - { ClkWinTitle, 0, Button2, zoom, {0} }
> -};
> diff --git a/dwm.c b/dwm.c
> index 6fad409..4aeec4e 100644
> --- a/dwm.c
> +++ b/dwm.c
> _AT_@ -451,10 +451,6 @@ buttonpress(XEvent *e)
> XAllowEvents(dpy, ReplayPointer, CurrentTime);
> click = ClkClientWin;
> }
> - for (i = 0; i < LENGTH(buttons); i++)
> - if (click == buttons[i].click && buttons[i].func && buttons[i].button == ev->button
> - && CLEANMASK(buttons[i].mask) == CLEANMASK(ev->state))
> - buttons[i].func(click == ClkTagBar && buttons[i].arg.i == 0 ? &arg : &buttons[i].arg);
> }
>
> void
> _AT_@ -942,13 +938,6 @@ grabbuttons(Client *c, int focused)
> if (!focused)
> XGrabButton(dpy, AnyButton, AnyModifier, c->win, False,
> BUTTONMASK, GrabModeSync, GrabModeSync, None, None);
> - for (i = 0; i < LENGTH(buttons); i++)
> - if (buttons[i].click == ClkClientWin)
> - for (j = 0; j < LENGTH(modifiers); j++)
> - XGrabButton(dpy, buttons[i].button,
> - buttons[i].mask | modifiers[j],
> - c->win, False, BUTTONMASK,
> - GrabModeAsync, GrabModeSync, None, None);
> }
> }
>
>
Received on Wed Oct 11 2017 - 10:26:48 CEST

This archive was generated by hypermail 2.3.0 : Wed Oct 11 2017 - 10:37:18 CEST