Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 117143 | Differences between
and this patch

Collapse All | Expand All

(-)wmii-3.1.orig/cmd/wm/area.c (-3 / +4 lines)
Lines 41-46 Link Here
41
	a->view = v;
41
	a->view = v;
42
	a->id = id++;
42
	a->id = id++;
43
	a->rect = rect;
43
	a->rect = rect;
44
	a->rect.y = AREA_VIEW_Y;
44
	a->rect.height = rect.height - brect.height;
45
	a->rect.height = rect.height - brect.height;
45
	a->mode = def.colmode;
46
	a->mode = def.colmode;
46
	a->rect.width = w;
47
	a->rect.width = w;
Lines 185-192 Link Here
185
			x = 0;
186
			x = 0;
186
		else
187
		else
187
			x = fr->rect.x / dx;
188
			x = fr->rect.x / dx;
188
		if(fr->rect.y < 0)
189
		if(fr->rect.y < AREA_VIEW_Y)
189
			y = 0;
190
			y = AREA_VIEW_Y;
190
		else
191
		else
191
			y = fr->rect.y / dy;
192
			y = fr->rect.y / dy;
192
		maxx = (fr->rect.x + fr->rect.width) / dx;
193
		maxx = (fr->rect.x + fr->rect.width) / dx;
Lines 226-232 Link Here
226
	}
227
	}
227
228
228
	if(fit && (p1.y + f->rect.height < a->rect.y + a->rect.height))
229
	if(fit && (p1.y + f->rect.height < a->rect.y + a->rect.height))
229
		f->rect.y = p1.y;
230
		f->rect.y = (p1.y < AREA_VIEW_Y) ? AREA_VIEW_Y : p1.y;
230
	else {
231
	else {
231
		diff = a->rect.height - f->rect.height;
232
		diff = a->rect.height - f->rect.height;
232
		f->rect.y = a->rect.y + (random() % (diff ? diff : 1));
233
		f->rect.y = a->rect.y + (random() % (diff ? diff : 1));
(-)wmii-3.1.orig/cmd/wm/bar.c (-1 / +1 lines)
Lines 65-71 Link Here
65
	unsigned int i, j;
65
	unsigned int i, j;
66
	brect = rect;
66
	brect = rect;
67
	brect.height = height_of_bar();
67
	brect.height = height_of_bar();
68
	brect.y = rect.height - brect.height;
68
	brect.y = WM_BAR_Y;
69
	XMoveResizeWindow(dpy, barwin, brect.x, brect.y, brect.width, brect.height);
69
	XMoveResizeWindow(dpy, barwin, brect.x, brect.y, brect.width, brect.height);
70
	XSync(dpy, False);
70
	XSync(dpy, False);
71
	XFreePixmap(dpy, barpmap);
71
	XFreePixmap(dpy, barpmap);
(-)wmii-3.1.orig/cmd/wm/view.c (-1 / +1 lines)
Lines 303-309 Link Here
303
	for(i = 1; i < v->area.size; i++) {
303
	for(i = 1; i < v->area.size; i++) {
304
		Area *a = v->area.data[i];
304
		Area *a = v->area.data[i];
305
		a->rect.x = xoff;
305
		a->rect.x = xoff;
306
		a->rect.y = 0;
306
		a->rect.y = AREA_VIEW_Y;
307
		a->rect.height = rect.height - brect.height;
307
		a->rect.height = rect.height - brect.height;
308
		xoff += a->rect.width;
308
		xoff += a->rect.width;
309
		arrange_column(a, False);
309
		arrange_column(a, False);
(-)wmii-3.1.orig/cmd/wm/wm.c (-1 / +1 lines)
Lines 333-339 Link Here
333
333
334
	brect = rect;
334
	brect = rect;
335
	brect.height = height_of_bar();
335
	brect.height = height_of_bar();
336
	brect.y = rect.height - brect.height;
336
	brect.y = WM_BAR_Y;
337
	barwin = XCreateWindow(dpy, RootWindow(dpy, screen), brect.x, brect.y,
337
	barwin = XCreateWindow(dpy, RootWindow(dpy, screen), brect.x, brect.y,
338
			brect.width, brect.height, 0, DefaultDepth(dpy, screen),
338
			brect.width, brect.height, 0, DefaultDepth(dpy, screen),
339
			CopyFromParent, DefaultVisual(dpy, screen),
339
			CopyFromParent, DefaultVisual(dpy, screen),
(-)wmii-3.1.orig/cmd/wm/wm.h (+9 lines)
Lines 10-15 Link Here
10
#include <ixp.h>
10
#include <ixp.h>
11
#include <blitz.h>
11
#include <blitz.h>
12
12
13
#if BAR_ON_TOP == 1
14
#define WM_BAR_Y 0
15
#define AREA_VIEW_Y brect.height
16
#else
17
#define WM_BAR_Y rect.height - brect.height
18
#define AREA_VIEW_Y 0
19
#endif
20
21
13
/* WM atoms */
22
/* WM atoms */
14
enum {
23
enum {
15
	WMState,
24
	WMState,
(-)wmii-3.1.orig/cmd/wmiimenu.c (-1 / +7 lines)
Lines 20-25 Link Here
20
#include <blitz.h>
20
#include <blitz.h>
21
#include <cext.h>
21
#include <cext.h>
22
22
23
#if BAR_ON_TOP == 1
24
#define MENU_Y 0 
25
#else
26
#define MENU_Y DisplayHeight(dpy, screen) - mrect.height
27
#endif
28
23
VECTOR(ItemVector, char *);
29
VECTOR(ItemVector, char *);
24
static Bool done = False;
30
static Bool done = False;
25
static int ret = 0;
31
static int ret = 0;
Lines 376-382 Link Here
376
382
377
	mrect.width = DisplayWidth(dpy, screen);
383
	mrect.width = DisplayWidth(dpy, screen);
378
	mrect.height = draw.font.ascent + draw.font.descent + 4;
384
	mrect.height = draw.font.ascent + draw.font.descent + 4;
379
	mrect.y = DisplayHeight(dpy, screen) - mrect.height;
385
	mrect.y = MENU_Y;
380
	mrect.x = 0;
386
	mrect.x = 0;
381
387
382
	win = XCreateWindow(dpy, RootWindow(dpy, screen), mrect.x, mrect.y,
388
	win = XCreateWindow(dpy, RootWindow(dpy, screen), mrect.x, mrect.y,
(-)wmii-3.1.orig/config.mk (-1 / +2 lines)
Lines 12-21 Link Here
12
12
13
# includes and libs
13
# includes and libs
14
LIBS = -L${PREFIX}/lib -L/usr/lib -lc -L${X11LIB} -lX11
14
LIBS = -L${PREFIX}/lib -L/usr/lib -lc -L${X11LIB} -lX11
15
BAR_ON_TOP = 0
15
16
16
# Linux/BSD
17
# Linux/BSD
17
CFLAGS = -O3 -I. -I${PREFIX}/include -I/usr/include -I${X11INC} \
18
CFLAGS = -O3 -I. -I${PREFIX}/include -I/usr/include -I${X11INC} \
18
	-DVERSION=\"${VERSION}\"
19
	-DVERSION=\"${VERSION}\" -DBAR_ON_TOP=${BAR_ON_TOP}
19
LDFLAGS = ${LIBS}
20
LDFLAGS = ${LIBS}
20
21
21
# Solaris
22
# Solaris

Return to bug 117143