From 215b6ee2e6cfbd201d4734da358413f7fb233229 Mon Sep 17 00:00:00 2001 From: David Maciejak Date: Sun, 9 Apr 2023 17:15:17 +0800 Subject: [PATCH] Set proper motif wm hints name Just a cosmetic change as the variable is currently not in use. According to the Motif Toolkit API and MwmUtil.h, the last long variable from the Motif WM Hints struct is currenlty used for the status. --- src/motif.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/motif.c b/src/motif.c index df439a82..a15d9c30 100644 --- a/src/motif.c +++ b/src/motif.c @@ -62,7 +62,7 @@ typedef struct { long functions; long decorations; long inputMode; - long unknown; + long status; } MWMHints; static Atom _XA_MOTIF_WM_HINTS; @@ -180,7 +180,7 @@ static int getMWMHints(Window window, MWMHints *mwmhints) mwmhints->decorations = data[2]; mwmhints->inputMode = data[3]; if (count > 5) - mwmhints->unknown = data[4]; + mwmhints->status = data[4]; } XFree(data);