diff options
author | tg <tg@FreeBSD.org> | 1999-05-25 10:15:26 +0000 |
---|---|---|
committer | tg <tg@FreeBSD.org> | 1999-05-25 10:15:26 +0000 |
commit | 8ec45d09b553334e9749988d6681948b9adef7a4 (patch) | |
tree | ad0067e4b71ec95742cdaa9bcadf1e424e877eb0 /games/xkobo/files/patch-ab | |
parent | 261f7269a75b6c906f9963136828f0635d337068 (diff) | |
download | FreeBSD-ports-8ec45d09b553334e9749988d6681948b9adef7a4.zip FreeBSD-ports-8ec45d09b553334e9749988d6681948b9adef7a4.tar.gz |
Make xkobo dockable by WindowMaker.
Diffstat (limited to 'games/xkobo/files/patch-ab')
-rw-r--r-- | games/xkobo/files/patch-ab | 45 |
1 files changed, 44 insertions, 1 deletions
diff --git a/games/xkobo/files/patch-ab b/games/xkobo/files/patch-ab index 9591a1b..4d81c53 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() |