New package: wm2-4

This commit is contained in:
Enno Boland 2014-09-20 12:49:15 +02:00
parent 9ee0431461
commit 4394e80905
2 changed files with 108 additions and 0 deletions

View File

@ -0,0 +1,92 @@
diff -ur Client.C Client.C
--- Client.C 1997-03-21 12:12:30.000000000 +0100
+++ Client.C 2007-06-30 16:56:10.000000000 +0200
@@ -400,7 +400,7 @@
}
-int Client::getAtomProperty(Atom a, Atom type)
+uintptr_t Client::getAtomProperty(Atom a, Atom type)
{
char **p, *x;
if (getProperty_aux(display(), m_window, a, type, 1L,
@@ -410,7 +410,7 @@
x = *p;
XFree((void *)p);
- return (int)x;
+ return (uintptr_t)x;
}
diff -ur Client.h Client.h
--- Client.h 1997-03-21 12:12:30.000000000 +0100
+++ Client.h 2007-06-30 16:56:10.000000000 +0200
@@ -2,6 +2,8 @@
#ifndef _CLIENT_H_
#define _CLIENT_H_
+#include <inttypes.h>
+
#include "General.h"
#include "Manager.h"
#include "Border.h"
@@ -125,7 +127,7 @@
WindowManager *const m_windowManager;
char *getProperty(Atom);
- int getAtomProperty(Atom, Atom);
+ uintptr_t getAtomProperty(Atom, Atom);
int getIntegerProperty(Atom);
// accessors
diff -ur General.h General.h
--- General.h 1997-03-21 12:12:30.000000000 +0100
+++ General.h 2007-06-30 16:56:10.000000000 +0200
@@ -32,7 +32,7 @@
#define NewString(x) (strcpy((char *)malloc(strlen(x)+1),(x)))
#ifndef SIGNAL_CALLBACK_TYPE
-#define SIGNAL_CALLBACK_TYPE (void (*)(...))
+#define SIGNAL_CALLBACK_TYPE (void (*)(int))
#endif
#define signal(x,y) \
diff -ur Makefile Makefile
--- Makefile 1997-03-21 12:12:30.000000000 +0100
+++ Makefile 2007-06-30 16:56:10.000000000 +0200
@@ -1,8 +1,6 @@
-LIBS = -L/usr/X11/lib -lXext -lX11 -lXmu -lm
+LIBS = -L/usr/X11R6/lib -lXext -lX11 -lXmu -lm
-CC = gcc
-CCC = gcc
-CFLAGS = -O2
+CCC = $(CXX)
OBJECTS = Border.o Buttons.o Client.o Events.o Main.o Manager.o Rotated.o
diff -ur Manager.C Manager.C
--- Manager.C 1997-03-21 12:12:30.000000000 +0100
+++ Manager.C 2007-06-30 16:56:10.000000000 +0200
@@ -368,7 +368,7 @@
return m_currentTime;
}
-void WindowManager::sigHandler()
+void WindowManager::sigHandler(int n)
{
m_signalled = True;
}
diff -ur Manager.h Manager.h
--- Manager.h 1997-03-21 12:12:30.000000000 +0100
+++ Manager.h 2007-06-30 16:56:10.000000000 +0200
@@ -85,7 +85,7 @@
static Boolean m_initialising;
static int errorHandler(Display *, XErrorEvent *);
- static void sigHandler();
+ static void sigHandler(int);
static int m_signalled;
void initialiseScreen();

16
srcpkgs/wm2/template Normal file
View File

@ -0,0 +1,16 @@
# Template file for 'wm2'
pkgname=wm2
version=4
revision=1
build_style=gnu-makefile
makedepends="libX11-devel libXext-devel libXmu-devel"
short_desc="a simple window manager for X"
maintainer="Enno Boland <eb@s01.de>"
license="BSD"
homepage="http://www.all-day-breakfast.com/wm2"
distfiles="http://www.all-day-breakfast.com/wm2/wm2-${version}.tar.gz"
checksum=a6c3352390f958c5033408ce73e1abd9677372a7c8c5949e39a62fda433b054d
do_install() {
vbin wm2
}