indenting

This commit is contained in:
Dana Jansens 2003-10-10 08:28:18 +00:00
parent 1be38a0418
commit c8678108eb

View file

@ -1,19 +1,19 @@
/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- /* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*-
client.c for the Openbox window manager client.c for the Openbox window manager
Copyright (c) 2003 Ben Jansens Copyright (c) 2003 Ben Jansens
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or the Free Software Foundation; either version 2 of the License, or
(at your option) any later version. (at your option) any later version.
This program is distributed in the hope that it will be useful, This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. GNU General Public License for more details.
See the COPYING file for a copy of the GNU General Public License. See the COPYING file for a copy of the GNU General Public License.
*/ */
#include "client.h" #include "client.h"
@ -134,18 +134,18 @@ void client_set_list()
} }
/* /*
void client_foreach_transient(ObClient *self, ObClientForeachFunc func, void *data) void client_foreach_transient(ObClient *self, ObClientForeachFunc func, void *data)
{ {
GSList *it; GSList *it;
for (it = self->transients; it; it = it->next) { for (it = self->transients; it; it = it->next) {
if (!func(it->data, data)) return; if (!func(it->data, data)) return;
client_foreach_transient(it->data, func, data); client_foreach_transient(it->data, func, data);
} }
} }
void client_foreach_ancestor(ObClient *self, ObClientForeachFunc func, void *data) void client_foreach_ancestor(ObClient *self, ObClientForeachFunc func, void *data)
{ {
if (self->transient_for) { if (self->transient_for) {
if (self->transient_for != OB_TRAN_GROUP) { if (self->transient_for != OB_TRAN_GROUP) {
if (!func(self->transient_for, data)) return; if (!func(self->transient_for, data)) return;
@ -161,7 +161,7 @@ void client_foreach_ancestor(ObClient *self, ObClientForeachFunc func, void *dat
} }
} }
} }
} }
*/ */
void client_manage_all() void client_manage_all()
@ -3024,7 +3024,8 @@ int client_directional_edge_search(ObClient *c, ObDirection dir)
my_edge_end = c->frame->area.x + c->frame->area.width; my_edge_end = c->frame->area.x + c->frame->area.width;
my_offset = c->frame->area.y; my_offset = c->frame->area.y;
dest = a->y; /* default: top of screen */ /* default: top of screen */
dest = a->y;
for(it = g_list_first(client_list); it; it = it->next) { for(it = g_list_first(client_list); it; it = it->next) {
int his_edge_start, his_edge_end, his_offset; int his_edge_start, his_edge_end, his_offset;
@ -3064,7 +3065,8 @@ int client_directional_edge_search(ObClient *c, ObDirection dir)
my_edge_end = c->frame->area.x + c->frame->area.width; my_edge_end = c->frame->area.x + c->frame->area.width;
my_offset = c->frame->area.y + c->frame->area.height; my_offset = c->frame->area.y + c->frame->area.height;
dest = a->y + a->height; /* default: bottom of screen */ /* default: bottom of screen */
dest = a->y + a->height;
for(it = g_list_first(client_list); it; it = it->next) { for(it = g_list_first(client_list); it; it = it->next) {
int his_edge_start, his_edge_end, his_offset; int his_edge_start, his_edge_end, his_offset;
@ -3105,7 +3107,8 @@ int client_directional_edge_search(ObClient *c, ObDirection dir)
my_edge_end = c->frame->area.y + c->frame->area.height; my_edge_end = c->frame->area.y + c->frame->area.height;
my_offset = c->frame->area.x; my_offset = c->frame->area.x;
dest = a->x; /* default: leftmost egde of screen */ /* default: leftmost egde of screen */
dest = a->x;
for(it = g_list_first(client_list); it; it = it->next) { for(it = g_list_first(client_list); it; it = it->next) {
int his_edge_start, his_edge_end, his_offset; int his_edge_start, his_edge_end, his_offset;
@ -3146,7 +3149,8 @@ int client_directional_edge_search(ObClient *c, ObDirection dir)
my_edge_end = c->frame->area.y + c->frame->area.height; my_edge_end = c->frame->area.y + c->frame->area.height;
my_offset = c->frame->area.x + c->frame->area.width; my_offset = c->frame->area.x + c->frame->area.width;
dest = a->x + a->width; /* default: rightmost edge of screen */ /* default: rightmost edge of screen */
dest = a->x + a->width;
for(it = g_list_first(client_list); it; it = it->next) { for(it = g_list_first(client_list); it; it = it->next) {
int his_edge_start, his_edge_end, his_offset; int his_edge_start, his_edge_end, his_offset;