diff options
| author | Mikael Magnusson <mikachu@comhem.se> | 2007-06-01 23:39:52 +0000 |
|---|---|---|
| committer | Mikael Magnusson <mikachu@comhem.se> | 2007-06-01 23:39:52 +0000 |
| commit | 47529e777f5d0ac222b6ed06c9644c3909bd6479 (patch) | |
| tree | eff36065a2cfb9dec749fc1b3cfc1d6d1bc8668c /openbox/action.c | |
| parent | 3547fe26edf0671dbc0ec5b3a081f8629d13e4b9 (diff) | |
revert 7246 and simplify action_raiselower a bit, turns out 7246 wasn't needed for that after all
Diffstat (limited to 'openbox/action.c')
| -rw-r--r-- | openbox/action.c | 27 |
1 files changed, 3 insertions, 24 deletions
diff --git a/openbox/action.c b/openbox/action.c index a01f4d06..39c1169b 100644 --- a/openbox/action.c +++ b/openbox/action.c @@ -1329,31 +1329,10 @@ void action_focus_order_to_bottom(union ActionData *data) void action_raiselower(union ActionData *data) { ObClient *c = data->client.any.c; - GList *it; - gboolean raise = FALSE; - - for (it = stacking_list; it; it = g_list_next(it)) { - if (WINDOW_IS_CLIENT(it->data)) { - ObClient *cit = it->data; - - if (cit == c) break; - if (client_normal(cit) == client_normal(c) && - cit->layer == c->layer && - cit->frame->visible && - !client_search_transient(c, cit)) - { - if (RECT_INTERSECTS_RECT(cit->frame->area, c->frame->area)) { - raise = TRUE; - break; - } - } - } - } - if (raise) - action_raise(data); - else - action_lower(data); + client_action_start(data); + stacking_restack_request(c, NULL, Opposite, FALSE); + client_action_end(data); } void action_raise(union ActionData *data) |
