Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 87228 Details for
Bug 117143
x11-wm/wmii-3 release available
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to place the bar at the top of the screen
wmii-3-unified_bar_on_top.patch (text/plain), 4.16 KB, created by
Gemma L.C. Anible
on 2006-05-21 22:46:01 UTC
(
hide
)
Description:
Patch to place the bar at the top of the screen
Filename:
MIME Type:
Creator:
Gemma L.C. Anible
Created:
2006-05-21 22:46:01 UTC
Size:
4.16 KB
patch
obsolete
>diff -Nur wmii-3.orig/cmd/Makefile wmii-3/cmd/Makefile >--- wmii-3.orig/cmd/Makefile 2006-05-19 13:20:53.000000000 +0200 >+++ wmii-3/cmd/Makefile 2006-05-21 12:51:37.000000000 +0200 >@@ -22,4 +22,4 @@ > # @${CC} -o $* $*.o ${LDFLAGS} -lsocket > > clean: >- rm -f wmiimenu wmiir wmiipsel wmiiwarp *.o >+ rm -f wmiisetsid wmiimenu wmiir wmiipsel wmiiwarp *.o >diff -Nur wmii-3.orig/cmd/wm/area.c wmii-3/cmd/wm/area.c >--- wmii-3.orig/cmd/wm/area.c 2006-05-19 13:20:53.000000000 +0200 >+++ wmii-3/cmd/wm/area.c 2006-05-21 18:07:49.000000000 +0200 >@@ -41,6 +41,7 @@ > a->view = v; > a->id = id++; > a->rect = rect; >+ a->rect.y = AREA_VIEW_Y; > a->rect.height = rect.height - brect.height; > a->mode = def.colmode; > a->rect.width = w; >@@ -185,8 +186,8 @@ > x = 0; > else > x = fr->rect.x / dx; >- if(fr->rect.y < 0) >- y = 0; >+ if(fr->rect.y < AREA_VIEW_Y) >+ y = AREA_VIEW_Y; > else > y = fr->rect.y / dy; > maxx = (fr->rect.x + fr->rect.width) / dx; >@@ -226,7 +227,7 @@ > } > > if(fit && (p1.y + f->rect.height < a->rect.y + a->rect.height)) >- f->rect.y = p1.y; >+ f->rect.y = (p1.y < AREA_VIEW_Y) ? AREA_VIEW_Y : p1.y; > else { > diff = a->rect.height - f->rect.height; > f->rect.y = a->rect.y + (random() % (diff ? diff : 1)); >diff -Nur wmii-3.orig/cmd/wm/bar.c wmii-3/cmd/wm/bar.c >--- wmii-3.orig/cmd/wm/bar.c 2006-05-19 13:20:53.000000000 +0200 >+++ wmii-3/cmd/wm/bar.c 2006-05-19 18:42:27.000000000 +0200 >@@ -74,7 +74,7 @@ > unsigned int i, j; > brect = rect; > brect.height = height_of_bar(); >- brect.y = rect.height - brect.height; >+ brect.y = WM_BAR_Y; > XMoveResizeWindow(dpy, barwin, brect.x, brect.y, brect.width, brect.height); > XSync(dpy, False); > XFreePixmap(dpy, barpmap); >diff -Nur wmii-3.orig/cmd/wm/view.c wmii-3/cmd/wm/view.c >--- wmii-3.orig/cmd/wm/view.c 2006-05-19 13:20:53.000000000 +0200 >+++ wmii-3/cmd/wm/view.c 2006-05-19 18:42:27.000000000 +0200 >@@ -318,7 +318,7 @@ > for(i = 1; i < v->area.size; i++) { > Area *a = v->area.data[i]; > a->rect.x = xoff; >- a->rect.y = 0; >+ a->rect.y = AREA_VIEW_Y; > a->rect.height = rect.height - brect.height; > xoff += a->rect.width; > arrange_column(a, False); >diff -Nur wmii-3.orig/cmd/wm/wm.c wmii-3/cmd/wm/wm.c >--- wmii-3.orig/cmd/wm/wm.c 2006-05-19 13:20:53.000000000 +0200 >+++ wmii-3/cmd/wm/wm.c 2006-05-19 18:42:27.000000000 +0200 >@@ -327,7 +327,7 @@ > > brect = rect; > brect.height = height_of_bar(); >- brect.y = rect.height - brect.height; >+ brect.y = WM_BAR_Y; > barwin = XCreateWindow(dpy, RootWindow(dpy, screen), brect.x, brect.y, > brect.width, brect.height, 0, DefaultDepth(dpy, screen), > CopyFromParent, DefaultVisual(dpy, screen), >diff -Nur wmii-3.orig/cmd/wm/wm.h wmii-3/cmd/wm/wm.h >--- wmii-3.orig/cmd/wm/wm.h 2006-05-19 13:20:53.000000000 +0200 >+++ wmii-3/cmd/wm/wm.h 2006-05-19 18:42:27.000000000 +0200 >@@ -10,6 +10,14 @@ > #include <ixp.h> > #include <blitz.h> > >+#if BAR_ON_TOP == 1 >+#define WM_BAR_Y 0 >+#define AREA_VIEW_Y brect.height >+#else >+#define WM_BAR_Y rect.height - brect.height >+#define AREA_VIEW_Y 0 >+#endif >+ > /* WM atoms */ > enum { > WMState, >diff -Nur wmii-3.orig/cmd/wmiimenu.c wmii-3/cmd/wmiimenu.c >--- wmii-3.orig/cmd/wmiimenu.c 2006-05-19 13:20:53.000000000 +0200 >+++ wmii-3/cmd/wmiimenu.c 2006-05-19 18:42:27.000000000 +0200 >@@ -20,6 +20,12 @@ > #include <blitz.h> > #include <cext.h> > >+#if BAR_ON_TOP == 1 >+#define MENU_Y 0 >+#else >+#define MENU_Y DisplayHeight(dpy, screen) - mrect.height >+#endif >+ > VECTOR(ItemVector, char *); > static Bool done = False; > static int ret = 0; >@@ -373,7 +379,7 @@ > > mrect.width = DisplayWidth(dpy, screen); > mrect.height = draw.font.ascent + draw.font.descent + 4; >- mrect.y = DisplayHeight(dpy, screen) - mrect.height; >+ mrect.y = MENU_Y; > mrect.x = 0; > > win = XCreateWindow(dpy, RootWindow(dpy, screen), mrect.x, mrect.y, >diff -Nur wmii-3.orig/config.mk wmii-3/config.mk >--- wmii-3.orig/config.mk 2006-05-19 13:20:53.000000000 +0200 >+++ wmii-3/config.mk 2006-05-21 12:50:56.000000000 +0200 >@@ -12,10 +12,11 @@ > > # includes and libs > LIBS = -L${PREFIX}/lib -L/usr/lib -lc -L${X11LIB} -lX11 >+BAR_ON_TOP = 0 > > # Linux/BSD > CFLAGS = -O2 -I. -I${PREFIX}/include -I/usr/include -I${X11INC} \ >- -DVERSION=\"${VERSION}\" >+ -DVERSION=\"${VERSION}\" -DBAR_ON_TOP=${BAR_ON_TOP} > LDFLAGS = ${LIBS} > > # Solaris >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 117143
:
75761
|
75762
|
76147
|
76148
|
77504
|
77505
|
78180
|
78252
|
78254
|
78334
|
78335
|
86115
|
86189
|
86586
|
87052
|
87228
|
87664
|
87666
|
89394
|
89399
|
89456
|
89457
|
89597
|
89598
|
89607
|
89866
|
89867
|
89929
|
92483