just a few casts and protos to shut up some warnings

SVN revision: 3969
This commit is contained in:
Till Adam 2000-12-09 16:51:12 +00:00
parent 7b49512f62
commit cad2b0e407
1 changed files with 12 additions and 5 deletions

View File

@ -15,6 +15,13 @@ static int border_mouse_buttons = 0;
static Eevent *current_ev = NULL; static Eevent *current_ev = NULL;
/*protos to shut up the compiler :) */
static void e_cb_border_mouse_down(E_Border *b, Eevent *e);
static void e_cb_border_mouse_up(E_Border *b, Eevent *e);
static void e_cb_border_mouse_move(E_Border *b, Eevent *e);
static void e_cb_border_mouse_in(E_Border *b, Eevent *e);
static void e_cb_border_mouse_out(E_Border *b, Eevent *e);
/* what to dowhen we're idle */ /* what to dowhen we're idle */
static void static void
e_idle(void *data) e_idle(void *data)
@ -49,7 +56,7 @@ e_map_request(Eevent * ev)
{ {
E_Border *b; E_Border *b;
printf("map request %x\n", e->win); printf("map request %x\n", (int) e->win);
b = e_border_find_by_window(e->win); b = e_border_find_by_window(e->win);
if (!b) if (!b)
{ {
@ -176,7 +183,7 @@ e_unmap(Eevent * ev)
if (b->ignore_unmap > 0) b->ignore_unmap--; if (b->ignore_unmap > 0) b->ignore_unmap--;
else else
{ {
printf("unmap %x\n", e->win); printf("unmap %x\n",(int) e->win);
e_action_stop_by_object(b, NULL, e_action_stop_by_object(b, NULL,
mouse_win_x, mouse_win_y, mouse_win_x, mouse_win_y,
border_mouse_x, border_mouse_y); border_mouse_x, border_mouse_y);
@ -209,7 +216,7 @@ e_destroy(Eevent * ev)
b = e_border_find_by_window(e->win); b = e_border_find_by_window(e->win);
if (b) if (b)
{ {
printf("destroy %x\n", e->win); printf("destroy %x\n", (int) e->win);
if (b->win.client == e->win) if (b->win.client == e->win)
{ {
e_action_stop_by_object(b, NULL, e_action_stop_by_object(b, NULL,
@ -936,7 +943,7 @@ e_border_adopt(Window win, int use_client_pos)
{ {
E_Border *b; E_Border *b;
printf("adopt %x\n", win); printf("adopt %x\n", (int) win);
/* create the struct */ /* create the struct */
b = e_border_new(); b = e_border_new();
/* set the right event on the client */ /* set the right event on the client */
@ -1748,7 +1755,7 @@ e_border_adopt_children(Window win)
{ {
E_Border *b; E_Border *b;
printf("manage %x\n", wins[i]); printf("manage %x\n", (int) wins[i]);
b = e_border_adopt(wins[i], 1); b = e_border_adopt(wins[i], 1);
{ {
int pl, pr, pt, pb; int pl, pr, pt, pb;