aboutsummaryrefslogtreecommitdiffstats
path: root/xevents.c
diff options
context:
space:
mode:
authorokan2018-11-13 17:37:13 +0000
committerokan2018-11-13 17:37:13 +0000
commitca79a22e6fffc9639d184a137de8b417c39e8024 (patch)
treee98647c4574e1c0f86ac91537c5e68b9f4380f08 /xevents.c
parent87fe084efc23e420de6be0523ec91e82d44fc093 (diff)
downloadcwm-ca79a22e6fffc9639d184a137de8b417c39e8024.tar.gz
Allow 'transientfor' clients to inherit group and bwidth either during init or
via property notify events. Previously only the flags were set but nothing was in the path to apply said flags and/or bwidth. Required slight of re-orgnaization of client_init.
Diffstat (limited to '')
-rw-r--r--xevents.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/xevents.c b/xevents.c
index 9fc659b..8ce32cd 100644
--- a/xevents.c
+++ b/xevents.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: xevents.c,v 1.134 2018/02/04 22:56:26 okan Exp $
+ * $OpenBSD: xevents.c,v 1.135 2018/11/13 17:37:13 okan Exp $
*/
/*
@@ -198,6 +198,9 @@ xev_handle_propertynotify(XEvent *ee)
break;
case XA_WM_TRANSIENT_FOR:
client_transient(cc);
+ client_draw_border(cc);
+ if (cc->gc)
+ group_movetogroup(cc, cc->gc->num);
break;
default:
/* do nothing */