cosmetic, fix indentations

This commit is contained in:
Julien Danjou 2007-10-11 15:23:33 +02:00
parent 4f1940d94f
commit 3c6e7fa6de
2 changed files with 10 additions and 9 deletions

View File

@ -72,16 +72,16 @@ grabbuttons(Client * c, Bool focused, Bool raised, KeySym modkey, unsigned int n
if(focused)
{
if (!raised)
if(!raised)
{
XGrabButton(c->display, Button1, NoSymbol, c->win, False, BUTTONMASK,
GrabModeAsync, GrabModeSync, None, None);
XGrabButton(c->display, Button1, NoSymbol, c->win, False,
ButtonPressMask, GrabModeAsync, GrabModeSync, None, None);
XGrabButton(c->display, Button1, LockMask, c->win, False,
BUTTONMASK, GrabModeAsync, GrabModeSync, None, None);
ButtonPressMask, GrabModeAsync, GrabModeSync, None, None);
XGrabButton(c->display, Button1, numlockmask, c->win, False,
BUTTONMASK, GrabModeAsync, GrabModeSync, None, None);
XGrabButton(c->display, Button1, numlockmask | LockMask,
c->win, False, BUTTONMASK, GrabModeAsync, GrabModeSync, None, None);
ButtonPressMask, GrabModeAsync, GrabModeSync, None, None);
XGrabButton(c->display, Button1, numlockmask | LockMask, c->win, False,
ButtonPressMask, GrabModeAsync, GrabModeSync, None, None);
}
XGrabButton(c->display, Button1, modkey, c->win, False, BUTTONMASK,
@ -135,6 +135,7 @@ grabbuttons(Client * c, Bool focused, Bool raised, KeySym modkey, unsigned int n
{
XGrabButton(c->display, AnyButton, AnyModifier, c->win, False, BUTTONMASK,
GrabModeAsync, GrabModeSync, None, None);
XGrabButton(c->display, Button4, NoSymbol, RootWindow(c->display, c->phys_screen), False, BUTTONMASK,
GrabModeAsync, GrabModeSync, None, None);
XGrabButton(c->display, Button4, LockMask, RootWindow(c->display, c->phys_screen), False, BUTTONMASK,

View File

@ -205,8 +205,8 @@ handle_event_buttonpress(XEvent * e, awesome_config *awesomeconf)
{
if (ev->button == Button1)
{
restack(c->display, &awesomeconf[c->screen]);
grabbuttons(c, True, True, awesomeconf->modkey, awesomeconf->numlockmask);
restack(c->display, &awesomeconf[c->screen]);
grabbuttons(c, True, True, awesomeconf->modkey, awesomeconf->numlockmask);
}
}
else if(ev->button == Button1)