mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
remove old (moved) code
ok oga@
This commit is contained in:
parent
198bb381a9
commit
ff9e573e1d
14
grab.c
14
grab.c
@ -22,7 +22,6 @@
|
||||
#include "calmwm.h"
|
||||
|
||||
static int _sweepcalc(struct client_ctx *, int, int, int, int);
|
||||
static int menu_calc_entry(int, int, int, 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)
|
||||
@ -185,16 +184,3 @@ _sweepcalc(struct client_ctx *cc, int x0, int y0, int motionx, int motiony)
|
||||
|
||||
return (width != cc->geom.width || height != cc->geom.height);
|
||||
}
|
||||
|
||||
static int
|
||||
menu_calc_entry(int x, int y, int width, int height, int noentries)
|
||||
{
|
||||
int entry = y/height;
|
||||
|
||||
/* in bounds? */
|
||||
if (x < 0 || x > width || y < 0 || y > height*noentries ||
|
||||
entry < 0 || entry >= noentries)
|
||||
entry = -1;
|
||||
|
||||
return (entry);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user