act->func == action_raiselower ||
act->func == action_shadelower ||
act->func == action_unshaderaise) {
- if ((n = parse_find_node("group", node->xmlChildrenNode)))
- act->data.stacking.group = parse_bool(doc, n);
}
INTERACTIVE_LIMIT(act, uact);
}
void action_raise(union ActionData *data)
{
client_action_start(data);
- stacking_raise(CLIENT_AS_WINDOW(data->client.any.c), data->stacking.group);
+ stacking_raise(CLIENT_AS_WINDOW(data->client.any.c));
client_action_end(data);
}
void action_lower(union ActionData *data)
{
client_action_start(data);
- stacking_lower(CLIENT_AS_WINDOW(data->client.any.c), data->stacking.group);
+ stacking_lower(CLIENT_AS_WINDOW(data->client.any.c));
client_action_end(data);
}
struct Stacking {
struct AnyAction any;
- gboolean group;
};
union ActionData {
switch (e->type) {
case ButtonPress:
if (e->xbutton.button == 1)
- stacking_raise(DOCK_AS_WINDOW(s), FALSE);
+ stacking_raise(DOCK_AS_WINDOW(s));
else if (e->xbutton.button == 2)
- stacking_lower(DOCK_AS_WINDOW(s), FALSE);
+ stacking_lower(DOCK_AS_WINDOW(s));
break;
case EnterNotify:
dock_hide(FALSE);
if (!self->mapped) {
XMapWindow(ob_display, self->bg);
- stacking_raise(INTERNAL_AS_WINDOW(self), FALSE);
+ stacking_raise(INTERNAL_AS_WINDOW(self));
self->mapped = TRUE;
}
}
}
}
-static void restack_windows(ObClient *selected, gboolean raise, gboolean group)
+static void restack_windows(ObClient *selected, gboolean raise)
{
GList *it, *last, *below, *above, *next;
GList *wins = NULL;
/* call restack for each of these to lower them */
for (top_it = top_reorder; top_it; top_it = g_slist_next(top_it))
- restack_windows(top_it->data, raise, group);
+ restack_windows(top_it->data, raise);
return;
}
g_list_free(wins);
}
-void stacking_raise(ObWindow *window, gboolean group)
+void stacking_raise(ObWindow *window)
{
if (WINDOW_IS_CLIENT(window)) {
ObClient *selected;
selected = WINDOW_AS_CLIENT(window);
- restack_windows(selected, TRUE, group);
+ restack_windows(selected, TRUE);
} else {
GList *wins;
wins = g_list_append(NULL, window);
}
}
-void stacking_lower(ObWindow *window, gboolean group)
+void stacking_lower(ObWindow *window)
{
if (WINDOW_IS_CLIENT(window)) {
ObClient *selected;
selected = WINDOW_AS_CLIENT(window);
- restack_windows(selected, FALSE, group);
+ restack_windows(selected, FALSE);
} else {
GList *wins;
wins = g_list_append(NULL, window);
future */
stacking_list = g_list_append(stacking_list, win);
- stacking_raise(win, FALSE);
+ stacking_raise(win);
}
void stacking_add_nonintrusive(ObWindow *win)
#define stacking_remove(win) stacking_list = g_list_remove(stacking_list, win);
/*! Raises a window above all others in its stacking layer */
-void stacking_raise(ObWindow *window, gboolean group);
+void stacking_raise(ObWindow *window);
/*! Lowers a window below all others in its stacking layer */
-void stacking_lower(ObWindow *window, gboolean group);
+void stacking_lower(ObWindow *window);
/*! Moves a window below another if its in the same layer.
This function does not enforce stacking rules IRT transients n such, and so