From 0c2d2c69b9346da9f6ef8bb8c35af3fe078b26f9 Mon Sep 17 00:00:00 2001 From: "Carlos R. Mafra" Date: Mon, 29 Mar 2010 00:00:07 +0200 Subject: [PATCH] Use 'long' instead of 'CARD32' in wClientSetState() and wWindowSaveState() The rationale is the same as in commit c7f2a189c48bd4c9eb87958fff66b52e0fdcb7ce ("Fix the call to XChangeProperty() in 64-bit mode"), because we are calling XChangeProperty() with format 32, which requires the type of 'data' to be 'long'. --- src/client.c | 2 +- src/window.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client.c b/src/client.c index a39e8e4c..9f3a5981 100644 --- a/src/client.c +++ b/src/client.c @@ -105,7 +105,7 @@ void wClientRestore(WWindow * wwin) */ void wClientSetState(WWindow * wwin, int state, Window icon_win) { - CARD32 data[2]; + long data[2]; wwin->state = state; diff --git a/src/window.c b/src/window.c index ecb3d038..41dce05f 100644 --- a/src/window.c +++ b/src/window.c @@ -2302,10 +2302,10 @@ void wWindowConfigureBorders(WWindow *wwin) void wWindowSaveState(WWindow * wwin) { - CARD32 data[10]; + long data[10]; int i; - memset(data, 0, sizeof(CARD32) * 10); + memset(data, 0, sizeof(long) * 10); data[0] = wwin->frame->workspace; data[1] = wwin->flags.miniaturized; data[2] = wwin->flags.shaded; -- 2.11.4.GIT