summaryrefslogtreecommitdiff
path: root/zwgc/X_gram.c
diff options
context:
space:
mode:
authorGravatar Marc Horowitz <marc@mit.edu>1990-04-12 23:04:30 +0000
committerGravatar Marc Horowitz <marc@mit.edu>1990-04-12 23:04:30 +0000
commit31b3b746bee537b38a62856d939c87aa5016b8df (patch)
tree7c451279314d80a51981ae79e87407f7891c85f5 /zwgc/X_gram.c
parent5aac41ebfb4f9e577f7e7221d0f0b8d2f29731e9 (diff)
added resource zwgc.transient to optionally set WM_TRANSIENT_FOR
on each zgram.
Diffstat (limited to 'zwgc/X_gram.c')
-rw-r--r--zwgc/X_gram.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/zwgc/X_gram.c b/zwgc/X_gram.c
index c0d8777..38da258 100644
--- a/zwgc/X_gram.c
+++ b/zwgc/X_gram.c
@@ -47,6 +47,7 @@ unsigned long default_bordercolor;
static int reset_saver;
static int border_width = 1;
static int cursor_code = XC_sailboat;
+static int set_transient = 0;
static char *title_name,*icon_name;
static Cursor cursor;
static Window group_leader; /* In order to have transient windows,
@@ -88,11 +89,10 @@ 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 */
+ if (set_transient && main_window)
+ XSetTransientForHint(dpy,w,main_window);
}
void x_gram_init(dpy)
@@ -121,6 +121,8 @@ void x_gram_init(dpy)
reverse_stack = get_bool_resource("reverseStack", "ReverseStack", 0);
reset_saver = get_bool_resource("resetSaver", "ResetSaver", 1);
+ /* The default here should be 1, but mwm sucks */
+ set_transient = get_bool_resource("transient", "Transient", 0);
temp = get_string_resource("borderWidth", "BorderWidth");
/* <<<>>> */