move get_client_bywin in client.c

This commit is contained in:
Julien Danjou 2007-10-16 22:40:02 +02:00
parent 842eed01c0
commit 1080180320
4 changed files with 10 additions and 11 deletions

View file

@ -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

View file

@ -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 *);

View file

@ -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)
{

View file

@ -24,7 +24,6 @@
#include "config.h"
Client * get_client_bywin(Client **list, Window w);
void grabkeys(awesome_config *); /* grab all keys defined in config */
void handle_event_buttonpress(XEvent *, awesome_config *);