mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
move get_client_bywin in client.c
This commit is contained in:
parent
842eed01c0
commit
1080180320
4 changed files with 10 additions and 11 deletions
9
client.c
9
client.c
|
@ -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
|
||||||
|
|
2
client.h
2
client.h
|
@ -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 *);
|
||||||
|
|
9
event.c
9
event.c
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
1
event.h
1
event.h
|
@ -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 *);
|
||||||
|
|
Loading…
Reference in a new issue