fix various uninit vars

This commit is contained in:
Julien Danjou 2008-01-04 14:19:59 +01:00
parent 96903cc580
commit bcebd5e1ce
3 changed files with 6 additions and 3 deletions

View File

@ -310,6 +310,8 @@ client_manage(Window w, XWindowAttributes *wa, int screen)
Rule *rule;
int phys_screen = get_phys_screen(screen);
area = get_screen_area(screen, NULL, NULL);
c = p_new(Client, 1);
c->win = w;
@ -337,7 +339,6 @@ client_manage(Window w, XWindowAttributes *wa, int screen)
if(!client_loadprops(c, screen))
tag_client_with_rules(c);
area = get_screen_area(screen, NULL, NULL);
/* if window request fullscreen mode */
if(c->w == area.width && c->h == area.height)

2
draw.c
View File

@ -245,6 +245,8 @@ draw_get_image_size(const char *filename)
surface = cairo_image_surface_create_from_png(filename);
cairo_image_surface_get_width(surface);
size.x = 0;
size.y = 0;
size.width = cairo_image_surface_get_width(surface);
size.height = cairo_image_surface_get_height(surface);
cairo_surface_destroy(surface);

View File

@ -122,11 +122,11 @@ uicb_client_movemouse(int screen, char *arg __attribute__ ((unused)))
void
uicb_client_resizemouse(int screen, char *arg __attribute__ ((unused)))
{
int ocx, ocy, nw, nh, n;
int ocx = 0, ocy = 0, nw, nh, n;
XEvent ev;
Client *c = globalconf.focus->client;
Tag **curtags = get_current_tags(screen);
Area area;
Area area = { 0, 0, 0, 0 };
double mwfact;
/* only handle floating and tiled layouts */