diff options
author | Marc Horowitz <marc@mit.edu> | 1990-04-12 23:04:30 +0000 |
---|---|---|
committer | Marc Horowitz <marc@mit.edu> | 1990-04-12 23:04:30 +0000 |
commit | 31b3b746bee537b38a62856d939c87aa5016b8df (patch) | |
tree | 7c451279314d80a51981ae79e87407f7891c85f5 /zwgc | |
parent | 5aac41ebfb4f9e577f7e7221d0f0b8d2f29731e9 (diff) |
added resource zwgc.transient to optionally set WM_TRANSIENT_FOR
on each zgram.
Diffstat (limited to 'zwgc')
-rw-r--r-- | zwgc/X_gram.c | 8 |
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"); /* <<<>>> */ |