mirror of
https://github.com/0intro/wmii
synced 2024-11-25 07:09:38 +03:00
Cleanup.
This commit is contained in:
parent
172ac9ce07
commit
84368de7f3
@ -5,6 +5,7 @@ include ${ROOT}/mk/wmii.mk
|
||||
main.c: ${ROOT}/mk/wmii.mk
|
||||
|
||||
TARG = wmii
|
||||
HFILES= dat.h fns.h
|
||||
|
||||
LIB = ${LIBIXP}
|
||||
EXLDFLAGS = -lm ${LIBX11} -lXext
|
||||
|
@ -691,7 +691,7 @@ move_client(Client *c, char *arg) {
|
||||
new.x += x;
|
||||
new.y += y;
|
||||
if(!f->area->floating)
|
||||
resize_column(f->client, &new);
|
||||
resize_column(f->client->sel, &new);
|
||||
else
|
||||
resize_client(f->client, &new);
|
||||
}
|
||||
@ -707,7 +707,7 @@ size_client(Client *c, char *arg) {
|
||||
new.width += w;
|
||||
new.height += h;
|
||||
if(!f->area->floating)
|
||||
resize_column(f->client, &new);
|
||||
resize_column(f->client->sel, &new);
|
||||
else
|
||||
resize_client(f->client, &new);
|
||||
}
|
||||
|
@ -78,8 +78,13 @@ enum {
|
||||
enum { Coldefault, Colstack, Colmax };
|
||||
|
||||
/* Cursor */
|
||||
enum { CurNormal, CurNECorner, CurNWCorner, CurSECorner, CurSWCorner,
|
||||
CurDHArrow, CurMove, CurInput, CurInvisible, CurLast };
|
||||
enum {
|
||||
CurNormal,
|
||||
CurNECorner, CurNWCorner, CurSECorner, CurSWCorner,
|
||||
CurDHArrow, CurMove, CurInput,
|
||||
CurInvisible,
|
||||
CurLast
|
||||
};
|
||||
|
||||
enum { NCOL = 16 };
|
||||
enum { WM_PROTOCOL_DELWIN = 1 };
|
||||
|
@ -288,9 +288,7 @@ ingrabbox(Frame *f, int x, int y) {
|
||||
void
|
||||
draw_frame(Frame *f) {
|
||||
BlitzBrush br = { 0 };
|
||||
XPoint pt[3];
|
||||
Frame *tf;
|
||||
int h;
|
||||
|
||||
if(f->view != screen->sel)
|
||||
return;
|
||||
|
@ -364,7 +364,7 @@ mouse_resizecol(Divide *d) {
|
||||
View *v;
|
||||
Area *a;
|
||||
uint w, minw;
|
||||
int x;
|
||||
int x, y;
|
||||
|
||||
v = screen->sel;
|
||||
|
||||
@ -376,13 +376,14 @@ mouse_resizecol(Divide *d) {
|
||||
return;
|
||||
|
||||
minw = screen->rect.width/NCOL;
|
||||
|
||||
|
||||
querypointer(blz.root, &x, &y);
|
||||
x = a->rect.x + minw;
|
||||
w = r_east(&a->next->rect) - minw;
|
||||
w -= x;
|
||||
|
||||
cwin = XCreateWindow(blz.dpy, blz.root,
|
||||
x, 0, w, 1,
|
||||
x, y, w, 1,
|
||||
/* border */ 0,
|
||||
/* depth */ CopyFromParent,
|
||||
/* class */ InputOnly,
|
||||
|
@ -3,4 +3,7 @@ include ${ROOT}/mk/hdr.mk
|
||||
|
||||
HFILES = ixp.h ixp_fcall.h
|
||||
|
||||
install: ${HFILES:.h=.install}
|
||||
uninstall: ${HFILES:.h=.uninstall}
|
||||
|
||||
include ${ROOT}/mk/common.mk
|
||||
|
@ -10,9 +10,6 @@ mkdirs:
|
||||
mkdir -pm 0755 $$i; \
|
||||
done
|
||||
|
||||
install: ${HFILES:.h=.install}
|
||||
uninstall: ${HFILES:.h=.uninstall}
|
||||
|
||||
cleandep:
|
||||
rm .depend 2>/dev/null || true
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user