From 3742f31216c2d6f3d6ebffca038262172c9ab020 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 4 Jan 2008 17:56:18 +0100 Subject: [PATCH] remove setborder uicb --- awesomerc.1.txt | 4 +--- client.c | 16 ---------------- client.h | 1 - uicb.c | 1 - 4 files changed, 1 insertion(+), 21 deletions(-) diff --git a/awesomerc.1.txt b/awesomerc.1.txt index d1ee5678..14b01e10 100644 --- a/awesomerc.1.txt +++ b/awesomerc.1.txt @@ -97,8 +97,6 @@ Screen ~~~~~~ *screen_focus* relative or absolute integer:: Select Screen and focus first window and move mouse. -*setborder* relative or absolute integer:: - Set default border size in pixels for new clients. WIDGETS ------- @@ -227,7 +225,7 @@ Note: when there are no whitespaces, quotes are optional. -> 1, 10, -3 (positive numbers are required mostly) -> a, 1, F10 (/usr/include/X11/keysymdef.h w/o XK_, 'xev') -> mod1, mod2,..., mod5 - -> spawn, setborder (see UICB FUNCTIONS above) + -> spawn, exec, client_tag... (see UICB FUNCTIONS above) -> prog, 3 (argument to a uicb function, where required) -> "foo bar" <{.., ...}> -> list of available options diff --git a/client.c b/client.c index 97a9f152..ff848eaa 100644 --- a/client.c +++ b/client.c @@ -735,22 +735,6 @@ uicb_client_settrans(int screen __attribute__ ((unused)), char *arg) window_settrans(sel->win, delta); } - -/** Set border size - * \param screen Screen ID - * \param arg X, +X or -X - * \ingroup ui_callback - */ -void -uicb_setborder(int screen, char *arg) -{ - if(!arg) - return; - - if((globalconf.screens[screen].borderpx = (int) compute_new_value_from_arg(arg, (double) globalconf.screens[screen].borderpx)) < 0) - globalconf.screens[screen].borderpx = 0; -} - /** Swap current with next client * \param screen Screen ID * \param arg nothing diff --git a/client.h b/client.h index 5b40e211..f22a4769 100644 --- a/client.h +++ b/client.h @@ -45,7 +45,6 @@ void client_maximize(Client *c, int, int, int, int, Bool); Uicb uicb_client_kill; Uicb uicb_client_moveresize; Uicb uicb_client_settrans; -Uicb uicb_setborder; Uicb uicb_client_swapnext; Uicb uicb_client_swapprev; Uicb uicb_client_togglemax; diff --git a/uicb.c b/uicb.c index 50b9fd76..8ec06d4c 100644 --- a/uicb.c +++ b/uicb.c @@ -42,7 +42,6 @@ const NameFuncLink UicbList[] = {"client_kill", uicb_client_kill}, {"client_moveresize", uicb_client_moveresize}, {"client_settrans", uicb_client_settrans}, - {"setborder", uicb_setborder}, {"client_swapnext", uicb_client_swapnext}, {"client_swapprev", uicb_client_swapprev}, /* tag.c */