1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 04:20:27 +01:00

Use 'long' instead of 'CARD32' in wClientSetState() and wWindowSaveState()

The rationale is the same as in commit c7f2a189c4
("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'.
This commit is contained in:
Carlos R. Mafra
2010-03-29 00:00:07 +02:00
parent 13ba5d5f5b
commit 0c2d2c69b9
2 changed files with 3 additions and 3 deletions

View File

@@ -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;

View File

@@ -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;