From b1ed3e49d6a67b233f4b9937c4b99c002fb30dbb Mon Sep 17 00:00:00 2001 From: Po Lu Date: Thu, 19 May 2022 13:50:39 +0800 Subject: [PATCH] Satisfy Valgrind when iconifying frames * src/xterm.c (x_iconify_frame): Set the rest of data in the WM_CHANGE_STATE message to 0 instead of leaving it uninitialized. --- src/xterm.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/xterm.c b/src/xterm.c index b12aa4b8438..142c2f81ce7 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -23045,6 +23045,10 @@ x_iconify_frame (struct frame *f) msg.xclient.message_type = FRAME_DISPLAY_INFO (f)->Xatom_wm_change_state; msg.xclient.format = 32; msg.xclient.data.l[0] = IconicState; + msg.xclient.data.l[1] = 0; + msg.xclient.data.l[2] = 0; + msg.xclient.data.l[3] = 0; + msg.xclient.data.l[4] = 0; if (! XSendEvent (FRAME_X_DISPLAY (f), FRAME_DISPLAY_INFO (f)->root_window, -- 2.39.2