From: Dana Jansens Date: Fri, 28 Mar 2003 07:50:35 +0000 (+0000) Subject: dont die if a non-visible window is raised/lowered X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=63bbbaefc73cc5495bae36a0021cd99d910e254f;p=chaz%2Fopenbox dont die if a non-visible window is raised/lowered --- diff --git a/openbox/stacking.c b/openbox/stacking.c index 72b7c03b..f38d4a0b 100644 --- a/openbox/stacking.c +++ b/openbox/stacking.c @@ -73,7 +73,8 @@ void stacking_raise(Client *client) stacking_list = g_list_insert_before(stacking_list, it, client); - XRestackWindows(ob_display, wins, 2); + if (client->frame.visible) + XRestackWindows(ob_display, wins, 2); stacking_set_list(); } @@ -116,7 +117,8 @@ void stacking_lower(Client *client) it->next, client); } - XRestackWindows(ob_display, wins, 2); + if (client->frame.visible) + XRestackWindows(ob_display, wins, 2); stacking_set_list(); }