mirror of
https://github.com/0intro/wmii
synced 2025-01-11 12:49:38 +03:00
proceeded
This commit is contained in:
parent
8b51412f04
commit
5d318d6a6b
@ -1216,7 +1216,7 @@ xwrite(IXPConn *c, Fcall *fcall)
|
||||
return Enofile;
|
||||
memcpy(buf, fcall->data, fcall->count);
|
||||
buf[fcall->count] = 0;
|
||||
i = cext_strtonum(buf, 1, 0xffff, &err);
|
||||
i = cext_strtonum(buf, 0, 0xffff, &err);
|
||||
if(err)
|
||||
return "max value out of range 1..0xffff";
|
||||
page[i1]->area[i2]->maxclient = i;
|
||||
@ -1227,7 +1227,7 @@ xwrite(IXPConn *c, Fcall *fcall)
|
||||
return Enofile;
|
||||
memcpy(buf, fcall->data, fcall->count);
|
||||
buf[fcall->count] = 0;
|
||||
i = cext_strtonum(buf, 1, 0xffff, &err);
|
||||
i = cext_strtonum(buf, 1, COL_MODE_LAST, &err);
|
||||
if(err)
|
||||
return "max value out of range 1..0xffff";
|
||||
page[i1]->area[i2]->mode = i;
|
||||
|
@ -61,7 +61,7 @@ typedef struct Area Area;
|
||||
typedef struct Page Page;
|
||||
typedef struct Client Client;
|
||||
|
||||
typedef enum { COL_MAX, COL_EQUAL, COL_STACK } ColumnMode;
|
||||
typedef enum { COL_MAX, COL_EQUAL, COL_STACK, COL_MODE_LAST } ColumnMode;
|
||||
|
||||
struct Area {
|
||||
unsigned short id;
|
||||
|
Loading…
Reference in New Issue
Block a user