add uicb_setborder to change conf borderpx while running
This commit is contained in:
parent
c0a003c52e
commit
9919ba2d4b
3
TODO
3
TODO
|
@ -1,6 +1,3 @@
|
|||
For v1.0:
|
||||
- Add uicb for sel->border++-- and awesomeconf->border++--
|
||||
|
||||
For future:
|
||||
- Move windows from one place to another with mouse in tiled layout
|
||||
- draw _NET_WM_ICON
|
||||
|
|
21
client.c
21
client.c
|
@ -700,3 +700,24 @@ uicb_settrans(Display *disp __attribute__ ((unused)),
|
|||
else
|
||||
setclienttrans(sel, delta);
|
||||
}
|
||||
|
||||
|
||||
/** Set borrder size
|
||||
* \param disp Display ref
|
||||
* \param drawcontext Drawcontext ref
|
||||
* \param awesomeconf awesome config
|
||||
* \param arg X, +X or -X
|
||||
*/
|
||||
void
|
||||
uicb_setborder(Display *disp __attribute__ ((unused)),
|
||||
DC *drawcontext __attribute__ ((unused)),
|
||||
awesome_config *awesomeconf,
|
||||
const char *arg)
|
||||
{
|
||||
if(!arg)
|
||||
return;
|
||||
|
||||
if((awesomeconf->borderpx = (int) compute_new_value_from_arg(arg, (double) awesomeconf->borderpx)) < 0)
|
||||
awesomeconf->borderpx = 0;
|
||||
}
|
||||
|
||||
|
|
1
client.h
1
client.h
|
@ -71,5 +71,6 @@ void set_shape(Client *);
|
|||
void uicb_killclient(Display *, DC *, awesome_config *, const char *); /* kill client */
|
||||
void uicb_moveresize(Display *, DC *, awesome_config *, const char *); /* move and resize window */
|
||||
void uicb_settrans(Display *, DC *, awesome_config *, const char *);
|
||||
void uicb_setborder(Display *, DC *, awesome_config *, const char *);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue