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:
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user