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 "statusbar.h"
#include "layouts/floating.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 /** Grab or ungrab buttons when a client is focused
* \param c client * \param c client
* \param focused True if client is focused * \param focused True if client is focused

View File

@ -27,7 +27,7 @@
/** Mask shorthands, used in event.c and client.c */ /** Mask shorthands, used in event.c and client.c */
#define BUTTONMASK (ButtonPressMask | ButtonReleaseMask) #define BUTTONMASK (ButtonPressMask | ButtonReleaseMask)
Client * get_client_bywin(Client **, Window);
void grabbuttons(Client *, Bool, Bool, KeySym, unsigned int); void grabbuttons(Client *, Bool, Bool, KeySym, unsigned int);
inline void attach(Client **, Client *); inline void attach(Client **, Client *);
inline void detach(Client **, Client *); inline void detach(Client **, Client *);

View File

@ -38,15 +38,6 @@
#define CLEANMASK(mask, screen) (mask & ~(awesomeconf[screen].numlockmask | LockMask)) #define CLEANMASK(mask, screen) (mask & ~(awesomeconf[screen].numlockmask | LockMask))
#define MOUSEMASK (BUTTONMASK | PointerMotionMask) #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 static void
movemouse(Client * c, awesome_config *awesomeconf) movemouse(Client * c, awesome_config *awesomeconf)
{ {

View File

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