mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-23 09:10:43 +00:00
1. Move the include of bsd.port.pre.mk before OPTIONS based on a recent
post to -ports on this topic 2. Fix build on amd64 by not trying to inline asm code designed for i386 3. Add a patch to fix window positioning on amd64, from http://article.gmane.org/gmane.compw.window-managers.windowmaker.devel/749 2 and 3 provided/reminded by Dejan Lesjak <dejan.lesjak@ijs.si> Fixes for 2 and 3 tested by Dejan, and A Dude <adudek16@gmail.com>. Approved by: portmgr (krion)
This commit is contained in:
parent
3cde444efd
commit
fcc46e520d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=140842
@ -43,11 +43,15 @@ MANLANG= "" sk
|
||||
MAN1= geticonset.1x getstyle.1x seticons.1x setstyle.1x wdwrite.1x \
|
||||
wmaker.1x wmsetbg.1x wxcopy.1x wxpaste.1x
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
OPTIONS= XINERAMA "Enable xinerama support" off \
|
||||
XKB_STATUS "XKB keyboard language status support" off \
|
||||
WM_LINGUAS "Enable support for additional locales" off
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
.if ${ARCH} == amd64
|
||||
CONFIGURE_ENV+= ac_cv_c_inline_asm=no
|
||||
.endif
|
||||
|
||||
.if defined(WITH_XINERAMA) || defined(PACKAGE_BUILDING)
|
||||
CONFIGURE_ARGS+= --enable-xinerama
|
||||
|
84
x11-wm/windowmaker/files/patch-src_wmspec.c
Normal file
84
x11-wm/windowmaker/files/patch-src_wmspec.c
Normal file
@ -0,0 +1,84 @@
|
||||
--- src/wmspec.c.sav 2004-10-24 21:36:15.000000000 +0200
|
||||
+++ src/wmspec.c 2005-01-26 17:13:54.266216856 +0100
|
||||
@@ -314,15 +314,15 @@
|
||||
void
|
||||
wNETWMUpdateDesktop(WScreen *scr)
|
||||
{
|
||||
- CARD32 *views, sizes[2];
|
||||
+ long *views, sizes[2];
|
||||
int count, i;
|
||||
|
||||
if (scr->workspace_count==0)
|
||||
return;
|
||||
|
||||
count = scr->workspace_count * 2;
|
||||
- views = wmalloc(sizeof(CARD32) * count);
|
||||
- /*memset(views, 0, sizeof(CARD32) * count);*/
|
||||
+ views = wmalloc(sizeof(long) * count);
|
||||
+ /*memset(views, 0, sizeof(long) * count);*/
|
||||
|
||||
#ifdef VIRTUAL_DESKTOP
|
||||
sizes[0] = scr->workspaces[scr->current_workspace]->width;
|
||||
@@ -362,7 +362,7 @@
|
||||
0, 1, &count);
|
||||
if (prop)
|
||||
{
|
||||
- int desktop= *(CARD32*)prop;
|
||||
+ int desktop= *(long*)prop;
|
||||
XFree(prop);
|
||||
return desktop;
|
||||
}
|
||||
@@ -426,7 +426,7 @@
|
||||
static void
|
||||
updateShowDesktop(WScreen * scr, Bool show)
|
||||
{
|
||||
- CARD32 foo;
|
||||
+ long foo;
|
||||
|
||||
foo = (show == True);
|
||||
XChangeProperty(dpy, scr->root_win, net_showing_desktop, XA_CARDINAL, 32,
|
||||
@@ -599,7 +599,7 @@
|
||||
void
|
||||
wNETWMUpdateWorkarea(WScreen *scr, WArea usableArea)
|
||||
{
|
||||
- CARD32 *area;
|
||||
+ long *area;
|
||||
int count, i;
|
||||
|
||||
/* XXX: not Xinerama compatible,
|
||||
@@ -609,7 +609,7 @@
|
||||
return;
|
||||
|
||||
count = scr->workspace_count * 4;
|
||||
- area = wmalloc(sizeof(CARD32) * count);
|
||||
+ area = wmalloc(sizeof(long) * count);
|
||||
for (i=0; i<scr->workspace_count; i++) {
|
||||
area[4*i + 0] = usableArea.x1;
|
||||
area[4*i + 1] = usableArea.y1;
|
||||
@@ -732,7 +732,7 @@
|
||||
static void
|
||||
updateWorkspaceCount(WScreen *scr) /* changeable */
|
||||
{
|
||||
- CARD32 count;
|
||||
+ long count;
|
||||
|
||||
count = scr->workspace_count;
|
||||
|
||||
@@ -744,7 +744,7 @@
|
||||
static void
|
||||
updateCurrentWorkspace(WScreen *scr) /* changeable */
|
||||
{
|
||||
- CARD32 count;
|
||||
+ long count;
|
||||
|
||||
count = scr->current_workspace;
|
||||
|
||||
@@ -791,7 +791,7 @@
|
||||
static void
|
||||
updateWorkspaceHint(WWindow *wwin, Bool fake, Bool del)
|
||||
{
|
||||
- CARD32 l;
|
||||
+ long l;
|
||||
|
||||
if (del) {
|
||||
XDeleteProperty(dpy, wwin->client_win, net_wm_desktop);
|
Loading…
Reference in New Issue
Block a user