From 571b09f999585c66e9781877c94807f663c2bd4c Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 7 Jun 2007 03:21:18 +0000 Subject: nice code cleanup that's been needed for a long time. add parents list to client, which you can iterate instead of going thru the group. --- openbox/stacking.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'openbox/stacking.c') diff --git a/openbox/stacking.c b/openbox/stacking.c index 2c80ada0..0c7e38fd 100644 --- a/openbox/stacking.c +++ b/openbox/stacking.c @@ -169,7 +169,7 @@ static void restack_windows(ObClient *selected, gboolean raise) GList *modals = NULL; GList *trans = NULL; - if (!raise && selected->transient_for) { + if (!raise && selected->parents) { GSList *top, *top_it; GSList *top_reorder = NULL; @@ -371,7 +371,7 @@ static GList *find_highest_relative(ObClient *client) { GList *ret = NULL; - if (client->transient_for) { + if (client->parents) { GList *it; GSList *top; -- cgit v1.2.3