diff --git a/client.c b/client.c index 77e0c112..03e39d43 100644 --- a/client.c +++ b/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 diff --git a/client.h b/client.h index 9e31de77..8f22118c 100644 --- a/client.h +++ b/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 *); diff --git a/event.c b/event.c index ebf763db..36b11054 100644 --- a/event.c +++ b/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) { diff --git a/event.h b/event.h index 97e0bc42..1b57a4a3 100644 --- a/event.h +++ b/event.h @@ -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 *);