mirror of https://github.com/0intro/wmii
Fix for 64bit archs again.
This commit is contained in:
parent
5b3cabdd00
commit
2529508122
|
@ -268,7 +268,7 @@ frame_hints(Frame *f, Rectangle r, Align sticky) {
|
|||
|
||||
static void
|
||||
set_client_state(Client * c, int state) {
|
||||
Atom data[] = { state, None };
|
||||
long data[] = { state, None };
|
||||
changeprop(&c->w, "WM_STATE", "WM_STATE", data, nelem(data));
|
||||
}
|
||||
|
||||
|
@ -866,7 +866,7 @@ apply_tags(Client *c, const char *tags) {
|
|||
cur = nil;
|
||||
if(!strcmp(buf+n, "~"))
|
||||
c->floating = add;
|
||||
else if(!strcmp(buf+n, "!"))
|
||||
else if(!strcmp(buf+n, "!") || strcmp(buf+n, "sel"))
|
||||
cur = screen->sel->name;
|
||||
else if(!Mbsearch(buf+n, badtags, bsstrcmp))
|
||||
cur = buf+n;
|
||||
|
|
|
@ -113,5 +113,6 @@ XRectangle XRect(Rectangle r);
|
|||
#define Pt(x, y) ((Point){(x), (y)})
|
||||
#define Rpt(p, q) ((Rectangle){p, q})
|
||||
#define Rect(x0, y0, x1, y1) ((Rectangle){Pt(x0, y0), Pt(x1, y1)})
|
||||
#define changeprop(w, prop, type, data, n) changeproperty(w, prop, type, (sizeof(*(data))*8), \
|
||||
#define changeprop(w, prop, type, data, n) changeproperty(w, prop, type, ((sizeof(*(data)) == 8 ? 4 : sizeof(*(data))) \
|
||||
* 8), \
|
||||
(uchar*)(data), n)
|
||||
|
|
|
@ -12,7 +12,7 @@ UNPATCH=debian/unpatch.ed
|
|||
|
||||
CFLAGS = -g -O0
|
||||
ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
|
||||
# wmii is IO, not CPU bound. Please do not use -O2 here.
|
||||
# wmii is IO, not CPU, bound. Please do not use -O2 here.
|
||||
CFLAGS += -O
|
||||
endif
|
||||
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
|
||||
|
|
|
@ -209,9 +209,7 @@ fn proglist {
|
|||
}
|
||||
|
||||
fn getfuns {
|
||||
ls -p /env | grep '^fn-' ^ $1 ^ '-' | getlines {
|
||||
echo ${re s '^fn-[^-]+-' '' $line}
|
||||
}
|
||||
ls -p /env | sed -n 's/^fn-' ^ $1 ^ '-//p'
|
||||
}
|
||||
|
||||
fn actionlist {
|
||||
|
@ -254,7 +252,7 @@ progs_file=/tmp/proglist.${pid}
|
|||
Action rehash &
|
||||
|
||||
# Tag Bar Setup
|
||||
{ifs:="{echo}; seltag=`{sed 1q /tag/sel/ctl}}
|
||||
seltag=${lines sed 1q /tag/sel/ctl}
|
||||
comm -13 ${pipe from {read_tags}} ${pipe from {ls -p /lbar/*}} |
|
||||
getlines { rm /lbar/$line }
|
||||
read_tags | getlines {
|
||||
|
@ -281,3 +279,4 @@ getlines {
|
|||
} </dev/null
|
||||
dprint loop
|
||||
} </event
|
||||
|
||||
|
|
Loading…
Reference in New Issue