aboutsummaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/window.c b/src/window.c
index 360f0d5..87779ea 100644
--- a/src/window.c
+++ b/src/window.c
@@ -30,7 +30,7 @@ static xcb_atom_t intern_atom(Window *win, const char *atom)
static void wm_set_size(Window *win)
{
- xcb_size_hints_t hints;
+ xcb_size_hints_t hints = { 0 };
xcb_icccm_size_hints_set_size(&hints, false, win->width, win->height);
xcb_icccm_size_hints_set_min_size(&hints, win->width, win->height);
xcb_icccm_size_hints_set_max_size(&hints, win->width, win->height);
@@ -38,7 +38,7 @@ static void wm_set_size(Window *win)
xcb_icccm_size_hints_set_position(&hints, false, win->x, win->y);
xcb_icccm_set_wm_size_hints(win->con->connection, win->window, XCB_ATOM_WM_NORMAL_HINTS, &hints);
- log_debug("Xcb icccm updated size hints");
+ log_debug("Xcb icccm size hints updated");
}
static void wm_set_struts(Window *win)
@@ -293,7 +293,6 @@ void window_destroy(Window *win)
{
cairo_destroy(win->cr);
cairo_surface_destroy(win->surface);
-
g_free(win);
}