aboutsummaryrefslogtreecommitdiffstats
path: root/mousefunc.c
diff options
context:
space:
mode:
authorokan2009-05-18 00:23:35 +0000
committerokan2009-05-18 00:23:35 +0000
commit4ef1caacef8237a3f910393b3fa5e7c70cc725fb (patch)
tree7812c2d8c3222f4b73cdf53074df9068f22cf148 /mousefunc.c
parent025d727caa6afca7b2555eb11b4fdd23afce1139 (diff)
downloadcwm-4ef1caacef8237a3f910393b3fa5e7c70cc725fb.tar.gz
nuke the leading underscore notation for local static functions - there
are far better ways to know. "go for it" oga@
Diffstat (limited to 'mousefunc.c')
-rw-r--r--mousefunc.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/mousefunc.c b/mousefunc.c
index 8dcc660..2f0a3dd 100644
--- a/mousefunc.c
+++ b/mousefunc.c
@@ -16,20 +16,20 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $Id: mousefunc.c,v 1.8 2009/04/15 14:10:07 okan Exp $
+ * $Id: mousefunc.c,v 1.9 2009/05/18 00:23:35 okan Exp $
*/
#include "headers.h"
#include "calmwm.h"
-static int _mousefunc_sweep_calc(struct client_ctx *, int, int, int, int);
-static void _mousefunc_sweep_draw(struct client_ctx *, int, int);
+static int mousefunc_sweep_calc(struct client_ctx *, int, int, int, int);
+static void mousefunc_sweep_draw(struct client_ctx *, int, int);
#define ADJUST_HEIGHT(cc, dy) ((cc->geom.height - cc->geom.min_dy) / dy)
#define ADJUST_WIDTH(cc, dx) ((cc->geom.width - cc->geom.min_dx) / dx)
static int
-_mousefunc_sweep_calc(struct client_ctx *cc, int x, int y, int mx, int my)
+mousefunc_sweep_calc(struct client_ctx *cc, int x, int y, int mx, int my)
{
int width = cc->geom.width, height = cc->geom.height;
@@ -60,7 +60,7 @@ _mousefunc_sweep_calc(struct client_ctx *cc, int x, int y, int mx, int my)
}
static void
-_mousefunc_sweep_draw(struct client_ctx *cc, int dx, int dy)
+mousefunc_sweep_draw(struct client_ctx *cc, int dx, int dy)
{
struct screen_ctx *sc = CCTOSC(cc);
char asize[10]; /* fits "nnnnxnnnn\0" */
@@ -103,7 +103,7 @@ mousefunc_window_resize(struct client_ctx *cc, void *arg)
return;
xu_ptr_setpos(cc->win, cc->geom.width, cc->geom.height);
- _mousefunc_sweep_draw(cc, dx, dy);
+ mousefunc_sweep_draw(cc, dx, dy);
for (;;) {
XMaskEvent(X_Dpy, MouseMask|ExposureMask, &ev);
@@ -113,10 +113,10 @@ mousefunc_window_resize(struct client_ctx *cc, void *arg)
client_draw_border(cc);
break;
case MotionNotify:
- if (_mousefunc_sweep_calc(cc, x, y,
+ if (mousefunc_sweep_calc(cc, x, y,
ev.xmotion.x, ev.xmotion.y))
/* Recompute window output */
- _mousefunc_sweep_draw(cc, dx, dy);
+ mousefunc_sweep_draw(cc, dx, dy);
/* don't sync more than 60 times / second */
if ((ev.xmotion.time - time) > (1000 / 60) ) {