summaryrefslogtreecommitdiff
blob: 91fb45ae8746c3c4d88831652fb5d0224a62acf9 (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
--- a/fishmon.c
+++ b/fishmon.c
@@ -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 */
 
--- a/Makefile
+++ b/Makefile
@@ -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` -lm -lX11
 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