summaryrefslogtreecommitdiff
path: root/zwgc
diff options
context:
space:
mode:
authorGravatar John Kohl <jtkohl@mit.edu>1989-11-29 07:08:22 +0000
committerGravatar John Kohl <jtkohl@mit.edu>1989-11-29 07:08:22 +0000
commit48dcabe0033f4c029782564d33e40c33f8eb5381 (patch)
treedb86b2839672e3b1d418e40939df077fccab6f89 /zwgc
parentbeb22815f0db0fcd859174a66f51bbfbae8efdfe (diff)
Shouldn't set transient on the window, so that some wm's can
iconify the windows
Diffstat (limited to 'zwgc')
-rw-r--r--zwgc/X_gram.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/zwgc/X_gram.c b/zwgc/X_gram.c
index a5082d9..e1c91b2 100644
--- a/zwgc/X_gram.c
+++ b/zwgc/X_gram.c
@@ -73,6 +73,7 @@ static XClassHint classhint;
* XSetTransientForHint is not called.
*/
+/*ARGSUSED*/
void x_set_icccm_hints(dpy,w,name,icon_name,psizehints,pwmhints,main_window)
Display *dpy;
Window w;
@@ -87,7 +88,11 @@ void x_set_icccm_hints(dpy,w,name,icon_name,psizehints,pwmhints,main_window)
XSetNormalHints(dpy,w,psizehints);
XSetWMHints(dpy,w,pwmhints);
XSetClassHint(dpy,w,&classhint);
+#ifdef DO_TRANSIENT_WINDOWS
+ /* in order for some wm's to iconify, the window shouldn't be transient.
+ e.g. Motif wm */
if (main_window) XSetTransientForHint(dpy,w,main_window);
+#endif /* DO_TRANSIENT_WINDOWS */
}
void x_gram_init(dpy)