From ee7189bf2a763121f1baca7abc7b794de4234bf4 Mon Sep 17 00:00:00 2001 From: Mads Kiilerich Date: Fri, 16 Mar 2012 15:45:14 +0100 Subject: [PATCH] x: please valgrind by initializing structure passed to X through writev --- client/X11/xf_window.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/X11/xf_window.c b/client/X11/xf_window.c index 429729a83..4adc288df 100644 --- a/client/X11/xf_window.c +++ b/client/X11/xf_window.c @@ -206,6 +206,8 @@ void xf_SetWindowDecorations(xfInfo* xfi, xfWindow* window, boolean show) hints.decorations = (show) ? MWM_DECOR_ALL : 0; hints.functions = MWM_FUNC_ALL ; hints.flags = MWM_HINTS_DECORATIONS | MWM_HINTS_FUNCTIONS; + hints.inputMode = 0; + hints.status = 0; XChangeProperty(xfi->display, window->handle, xfi->_MOTIF_WM_HINTS, xfi->_MOTIF_WM_HINTS, 32, PropModeReplace, (uint8*) &hints, PROP_MOTIF_WM_HINTS_ELEMENTS);