diff options
author | Thomas Gellekum <tg@FreeBSD.org> | 1999-05-25 10:15:26 +0000 |
---|---|---|
committer | Thomas Gellekum <tg@FreeBSD.org> | 1999-05-25 10:15:26 +0000 |
commit | d860d79ec34aefda49d75eff2475f6066857574c (patch) | |
tree | d12274c3f9fdb7888c81125861428fa257d9d6b2 /games | |
parent | a859b9aaecc44d19e60724ebf15e0c1afefcb37a (diff) |
Make xkobo dockable by WindowMaker.
Notes
Notes:
svn path=/head/; revision=18986
Diffstat (limited to 'games')
-rw-r--r-- | games/xkobo/files/patch-ab | 45 | ||||
-rw-r--r-- | games/xkobo/files/patch-ac | 10 | ||||
-rw-r--r-- | games/xkobo/files/patch-ad | 10 |
3 files changed, 64 insertions, 1 deletions
diff --git a/games/xkobo/files/patch-ab b/games/xkobo/files/patch-ab index 9591a1bf90cd..4d81c53013bd 100644 --- a/games/xkobo/files/patch-ab +++ b/games/xkobo/files/patch-ab @@ -1,5 +1,5 @@ --- xlwin.C.orig Wed Mar 13 17:34:46 1996 -+++ xlwin.C Wed Mar 25 20:16:00 1998 ++++ xlwin.C Tue May 25 12:01:08 1999 @@ -21,6 +21,10 @@ */ @@ -33,3 +33,46 @@ if (disp == NULL){ fprintf(stderr, "xlwin: can't open display\n"); exit(1); +@@ -125,12 +143,6 @@ + + XSelectInput(disp,w,mask); + mask = -1; +- +- XWMHints wmhint; +- icon = XCreateBitmapFromData(disp, w, icon_bitmap, 64, 64); +- wmhint.icon_pixmap = icon; +- wmhint.flags = IconPixmapHint; +- XSetWMHints(disp, w, &wmhint); + } + + void win::map() +@@ -154,6 +166,29 @@ + Atom wm_delete_window; + wm_delete_window = XInternAtom(disp, "WM_DELETE_WINDOW", False); + XSetWMProtocols(disp, w, &wm_delete_window, 1); ++} ++ ++void win::set_wm_hints(int argc, char *argv[]) ++{ ++ XWMHints *wmhint = XAllocWMHints(); ++ if (wmhint) { ++ icon = XCreateBitmapFromData(disp, w, icon_bitmap, 64, 64); ++ wmhint->icon_pixmap = icon; ++ wmhint->window_group = w; ++ wmhint->flags = IconPixmapHint | WindowGroupHint; ++ XSetWMHints(disp, w, wmhint); ++ XFree(wmhint); ++ } ++ ++ XClassHint *classhint = XAllocClassHint(); ++ if (classhint) { ++ classhint->res_name = "xkobo"; ++ classhint->res_class = "XKobo"; ++ XSetClassHint(disp, w, classhint); ++ XFree(classhint); ++ } ++ ++ XSetCommand(disp, w, argv, argc); + } + + void win::hold_size() diff --git a/games/xkobo/files/patch-ac b/games/xkobo/files/patch-ac new file mode 100644 index 000000000000..861b7fb6b679 --- /dev/null +++ b/games/xkobo/files/patch-ac @@ -0,0 +1,10 @@ +--- xlwin.h.orig Wed Apr 3 23:58:57 1996 ++++ xlwin.h Tue May 25 11:57:59 1999 +@@ -77,6 +77,7 @@ + int eventloop(); + void title(char *title); + void set_wm_close(); ++ void set_wm_hints(int argc, char *argv[]); + void hold_size(); + void erase_cursor(); + void setowner(void *owner); diff --git a/games/xkobo/files/patch-ad b/games/xkobo/files/patch-ad new file mode 100644 index 000000000000..27a42573c2b5 --- /dev/null +++ b/games/xkobo/files/patch-ad @@ -0,0 +1,10 @@ +--- xkobo.C.orig Fri Jun 14 19:27:27 1996 ++++ xkobo.C Tue May 25 11:59:03 1999 +@@ -202,6 +202,7 @@ + + wbase.title("xkobo"); + wbase.set_wm_close(); ++ wbase.set_wm_hints(argc, argv); + wbase.hold_size(); + wbase.font(NORMAL_FONT); + wbase.foreground(wbase.alloc_color(65535, 65535, 65535)); |