summaryrefslogtreecommitdiff
blob: a2c8342938f5636e646db4b3180a0614b8a653b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
diff -ur wmfishtime-1.24.orig/fishmon.c wmfishtime-1.24/fishmon.c
--- wmfishtime-1.24.orig/fishmon.c	2004-05-13 02:55:59.000000000 +0300
+++ wmfishtime-1.24/fishmon.c	2008-01-12 16:19:34.000000000 +0200
@@ -648,6 +648,7 @@
 
     /* make a copy for the iconwin - parameters are the same */
     memcpy(&attri, &attr, sizeof(GdkWindowAttr));
+    attri.window_type = GDK_WINDOW_CHILD;
 
     sizehints.flags = USSize;
     sizehints.width = 64;
@@ -679,7 +680,6 @@
     wmhints.window_group = win;
     wmhints.flags =
 	StateHint | IconWindowHint | IconPositionHint | WindowGroupHint;
-    XSetWMHints(GDK_WINDOW_XDISPLAY(bm.win), win, &wmhints);
 
     bm.gc = gdk_gc_new(bm.win);
 
@@ -693,6 +693,8 @@
 
     gdk_window_show(bm.win);
 
+    XSetWMHints(GDK_WINDOW_XDISPLAY(bm.win), win, &wmhints);
+
 #undef MASK
 }				/* make_new_fishmon_dockapp */
 
diff -ur wmfishtime-1.24.orig/Makefile wmfishtime-1.24/Makefile
--- wmfishtime-1.24.orig/Makefile	2001-05-26 23:49:41.000000000 +0300
+++ wmfishtime-1.24/Makefile	2008-01-12 16:22:30.000000000 +0200
@@ -2,11 +2,11 @@
 DESTDIR =
 
 # where to install this program
-PREFIX = $(DESTDIR)/usr/X11R6
+PREFIX = $(DESTDIR)/usr
 
 # no user serviceable parts below this line
 # optimization cflags
-CFLAGS = -O3 -Wall `gtk-config --cflags` ${EXTRA}
+CFLAGS += -Wall `pkg-config gtk+-2.0 --cflags` ${EXTRA}
 # profiling cflags
 # CFLAGS=-ansi -pedantic -Wall -pg -O3 `gtk-config --cflags` ${EXTRA} -DPRO
 # test coverage cflags
@@ -16,7 +16,7 @@
 CC = gcc
 SHELL = sh
 OBJS = fishmon.o
-LIBS = `gtk-config --libs | sed "s/-lgtk//g"`
+LIBS = `pkg-config gtk+-2.0 --libs`
 INSTALL = -m 755
 
 all: wmfishtime
@@ -30,4 +30,4 @@
 # You're going to have to be root to do this!
 install:
 	install $(INSTALL) wmfishtime $(PREFIX)/bin
-	install $(INSTALL) wmfishtime.1 $(PREFIX)/man/man1
+	install $(INSTALL) wmfishtime.1 $(PREFIX)/share/man/man1