void client_foreach_ancestor(ObClient *self, ObClientForeachFunc func, void *data)
{
if (self->transient_for) {
- if (self->transient_for != TRAN_GROUP) {
+ if (self->transient_for != OB_TRAN_GROUP) {
if (!func(self->transient_for, data)) return;
client_foreach_ancestor(self->transient_for, func, data);
} else {
screen_update_areas();
/* tell our parent(s) that we're gone */
- if (self->transient_for == TRAN_GROUP) { /* transient of group */
+ if (self->transient_for == OB_TRAN_GROUP) { /* transient of group */
GSList *it;
for (it = self->group->members; it; it = it->next)
/* tell our transients that we're gone */
for (it = self->transients; it != NULL; it = it->next) {
- if (((ObClient*)it->data)->transient_for != TRAN_GROUP) {
+ if (((ObClient*)it->data)->transient_for != OB_TRAN_GROUP) {
((ObClient*)it->data)->transient_for = NULL;
client_calc_layer(it->data);
}
gboolean trdesk = FALSE;
if (self->transient_for) {
- if (self->transient_for != TRAN_GROUP) {
+ if (self->transient_for != OB_TRAN_GROUP) {
self->desktop = self->transient_for->desktop;
trdesk = TRUE;
} else {
t == None ||
t == ob_root) {
/* window is a transient for its group! */
- c = TRAN_GROUP;
+ c = OB_TRAN_GROUP;
}
}
}
/* if anything has changed... */
if (c != self->transient_for) {
- if (self->transient_for == TRAN_GROUP) { /* transient of group */
+ if (self->transient_for == OB_TRAN_GROUP) { /* transient of group */
GSList *it;
/* remove from old parents */
g_slist_remove(self->transient_for->transients, self);
}
self->transient_for = c;
- if (self->transient_for == TRAN_GROUP) { /* transient of group */
+ if (self->transient_for == OB_TRAN_GROUP) { /* transient of group */
GSList *it;
/* add to new parents */
set up */
for (it = self->group->members; it; it = it->next)
if (it->data != self &&
- ((ObClient*)it->data)->transient_for == TRAN_GROUP)
+ ((ObClient*)it->data)->transient_for == OB_TRAN_GROUP)
self->transients = g_slist_append(self->transients,
it->data);
}
ObClient *client_search_focus_tree_full(ObClient *self)
{
if (self->transient_for) {
- if (self->transient_for != TRAN_GROUP) {
+ if (self->transient_for != OB_TRAN_GROUP) {
return client_search_focus_tree_full(self->transient_for);
} else {
GSList *it;
{
/* move up the transient chain as far as possible */
if (self->transient_for) {
- if (self->transient_for != TRAN_GROUP) {
+ if (self->transient_for != OB_TRAN_GROUP) {
return client_search_top_transient(self->transient_for);
} else {
GSList *it;
if (type == Fallback_Unfocusing && old) {
/* try for transient relations */
if (old->transient_for) {
- if (old->transient_for == TRAN_GROUP) {
+ if (old->transient_for == OB_TRAN_GROUP) {
for (it = focus_order[screen_desktop]; it; it = it->next) {
GSList *sit;
popup_size(focus_cycle_popup, 320, 48);
/* use the transient's parent's title/icon */
- while (p->transient_for && p->transient_for != TRAN_GROUP)
+ while (p->transient_for && p->transient_for != OB_TRAN_GROUP)
p = p->transient_for;
if (p == c)