From 1b63e8a3c5529777c300ec08acc58ea2a26b5c0d Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 12 Feb 2008 10:09:36 +0100 Subject: [PATCH] rename get_current_layout to layout_get_current() --- client.c | 8 ++++---- layout.c | 4 ++-- layout.h | 2 +- mouse.c | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/client.c b/client.c index d49d7bdc..7790f234 100644 --- a/client.c +++ b/client.c @@ -508,7 +508,7 @@ client_resize(Client *c, Area geometry, Bool sizehints) /* save the floating geometry if the window is floating but not * maximized */ if((c->isfloating || - get_current_layout(new_screen)->arrange == layout_floating) && !c->ismax) + layout_get_current(new_screen)->arrange == layout_floating) && !c->ismax) c->f_geometry = geometry; XConfigureWindow(globalconf.display, c->win, @@ -847,7 +847,7 @@ uicb_client_moveresize(int screen, char *arg) Window dummy; Area area; Client *sel = globalconf.focus->client; - Layout *curlay = get_current_layout(screen); + Layout *curlay = layout_get_current(screen); if(curlay->arrange != layout_floating || !sel || !sel->isfloating || sel->isfixed || !arg) @@ -922,7 +922,7 @@ client_maximize(Client *c, Area geometry) { c->wasfloating = c->isfloating; c->m_geometry = c->geometry; - if(get_current_layout(c->screen)->arrange != layout_floating) + if(layout_get_current(c->screen)->arrange != layout_floating) client_setfloating(c, True); client_focus(c, c->screen, True); client_resize(c, geometry, False); @@ -934,7 +934,7 @@ client_maximize(Client *c, Area geometry) client_resize(c, c->m_geometry, False); widget_invalidate_cache(c->screen, WIDGET_CACHE_CLIENTS); } - else if(get_current_layout(c->screen)->arrange == layout_floating) + else if(layout_get_current(c->screen)->arrange == layout_floating) { client_resize(c, c->m_geometry, False); widget_invalidate_cache(c->screen, WIDGET_CACHE_CLIENTS); diff --git a/layout.c b/layout.c index 955960f0..7dd9e279 100644 --- a/layout.c +++ b/layout.c @@ -45,7 +45,7 @@ static void arrange(int screen) { Client *c; - Layout *curlay = get_current_layout(screen); + Layout *curlay = layout_get_current(screen); unsigned int dui; int di, x, y; Window rootwin, childwin; @@ -103,7 +103,7 @@ layout_refresh(void) } Layout * -get_current_layout(int screen) +layout_get_current(int screen) { Tag **curtags = tags_get_current(screen); Layout *l = curtags[0]->layout; diff --git a/layout.h b/layout.h index 59326ce3..b689ea7a 100644 --- a/layout.h +++ b/layout.h @@ -41,7 +41,7 @@ struct Layout DO_SLIST(Layout, layout, p_delete); int layout_refresh(void); -Layout * get_current_layout(int); +Layout * layout_get_current(int); void loadawesomeprops(int); void saveawesomeprops(int); diff --git a/mouse.c b/mouse.c index cd095883..45927144 100644 --- a/mouse.c +++ b/mouse.c @@ -49,7 +49,7 @@ uicb_client_movemouse(int screen, char *arg __attribute__ ((unused))) XEvent ev; Area area, geometry; Client *c = globalconf.focus->client, *target; - Layout *layout = get_current_layout(screen); + Layout *layout = layout_get_current(screen); if(!c) return;