move get_client_bywin in client.c
This commit is contained in:
parent
842eed01c0
commit
1080180320
9
client.c
9
client.c
|
@ -33,6 +33,15 @@
|
|||
#include "statusbar.h"
|
||||
#include "layouts/floating.h"
|
||||
|
||||
Client *
|
||||
get_client_bywin(Client **list, Window w)
|
||||
{
|
||||
Client *c;
|
||||
|
||||
for(c = *list; c && c->win != w; c = c->next);
|
||||
return c;
|
||||
}
|
||||
|
||||
/** Grab or ungrab buttons when a client is focused
|
||||
* \param c client
|
||||
* \param focused True if client is focused
|
||||
|
|
2
client.h
2
client.h
|
@ -27,7 +27,7 @@
|
|||
/** Mask shorthands, used in event.c and client.c */
|
||||
#define BUTTONMASK (ButtonPressMask | ButtonReleaseMask)
|
||||
|
||||
|
||||
Client * get_client_bywin(Client **, Window);
|
||||
void grabbuttons(Client *, Bool, Bool, KeySym, unsigned int);
|
||||
inline void attach(Client **, Client *);
|
||||
inline void detach(Client **, Client *);
|
||||
|
|
9
event.c
9
event.c
|
@ -38,15 +38,6 @@
|
|||
#define CLEANMASK(mask, screen) (mask & ~(awesomeconf[screen].numlockmask | LockMask))
|
||||
#define MOUSEMASK (BUTTONMASK | PointerMotionMask)
|
||||
|
||||
Client *
|
||||
get_client_bywin(Client **list, Window w)
|
||||
{
|
||||
Client *c;
|
||||
|
||||
for(c = *list; c && c->win != w; c = c->next);
|
||||
return c;
|
||||
}
|
||||
|
||||
static void
|
||||
movemouse(Client * c, awesome_config *awesomeconf)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue