[screen] s/screen_get_area/screen_area_get/

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-06-04 15:35:48 +02:00
parent 5f2585d82e
commit 24176ba8c7
10 changed files with 15 additions and 15 deletions

2
ewmh.c
View File

@ -290,7 +290,7 @@ ewmh_process_state_atom(client_t *c, xcb_atom_t state, int set)
}
else if(set == _NET_WM_STATE_ADD)
{
geometry = screen_get_area(c->screen, NULL, &globalconf.screens[c->screen].padding);
geometry = screen_area_get(c->screen, NULL, &globalconf.screens[c->screen].padding);
/* save geometry */
c->m_geometry = c->geometry;
c->wasfloating = c->isfloating;

View File

@ -32,7 +32,7 @@ layout_fibonacci(int screen, int shape)
int n = 0, i = 0;
client_t *c;
area_t geometry, area;
geometry = area = screen_get_area(screen,
geometry = area = screen_area_get(screen,
globalconf.screens[screen].statusbar,
&globalconf.screens[screen].padding);

View File

@ -33,7 +33,7 @@ layout_magnifier(int screen)
int n = 0;
client_t *c, *focus;
tag_t **curtags = tags_get_current(screen);
area_t geometry, area = screen_get_area(screen,
area_t geometry, area = screen_area_get(screen,
globalconf.screens[screen].statusbar,
&globalconf.screens[screen].padding);

View File

@ -31,7 +31,7 @@ void
layout_max(int screen)
{
client_t *c, *focus;
area_t area = screen_get_area(screen,
area_t area = screen_area_get(screen,
globalconf.screens[screen].statusbar,
&globalconf.screens[screen].padding);

View File

@ -42,7 +42,7 @@ _tile(int screen, const position_t position)
client_t *c;
tag_t **curtags = tags_get_current(screen);
area = screen_get_area(screen,
area = screen_area_get(screen,
globalconf.screens[screen].statusbar,
&globalconf.screens[screen].padding);

View File

@ -99,7 +99,7 @@ mouse_snapclient(client_t *c, area_t geometry, int snap)
client_t *snapper;
area_t snapper_geometry;
area_t screen_geometry =
screen_get_area(c->screen,
screen_area_get(c->screen,
globalconf.screens[c->screen].statusbar,
&globalconf.screens[c->screen].padding);
@ -359,7 +359,7 @@ mouse_client_resize(client_t *c)
for(c = globalconf.clients; c && !IS_TILED(c, screen); c = c->next);
if(!c) return;
area = screen_get_area(c->screen,
area = screen_area_get(c->screen,
globalconf.screens[c->screen].statusbar,
&globalconf.screens[c->screen].padding);

View File

@ -42,7 +42,7 @@ placement_fix_offscreen(area_t geometry, int screen, int border)
{
area_t screen_geometry;
screen_geometry = screen_get_area(screen,
screen_geometry = screen_area_get(screen,
globalconf.screens[screen].statusbar,
&globalconf.screens[screen].padding);
@ -76,7 +76,7 @@ placement_smart(client_t *c)
screen_geometry = p_new(area_t, 1);
*screen_geometry = screen_get_area(c->screen,
*screen_geometry = screen_area_get(c->screen,
globalconf.screens[c->screen].statusbar,
&globalconf.screens[c->screen].padding);

View File

@ -39,7 +39,7 @@ extern awesome_t globalconf;
* \return The screen area.
*/
area_t
screen_get_area(int screen, statusbar_t *statusbar, padding_t *padding)
screen_area_get(int screen, statusbar_t *statusbar, padding_t *padding)
{
area_t area = globalconf.screens_info->geometry[screen];
statusbar_t *sb;
@ -146,8 +146,8 @@ move_client_to_screen(client_t *c, int new_screen, bool doresize)
area_t new_geometry, new_f_geometry;
new_f_geometry = c->f_geometry;
to = screen_get_area(c->screen, NULL, NULL);
from = screen_get_area(old_screen, NULL, NULL);
to = screen_area_get(c->screen, NULL, NULL);
from = screen_area_get(old_screen, NULL, NULL);
/* compute new coords in new screen */
new_f_geometry.x = (c->f_geometry.x - from.x) + to.x;

View File

@ -24,7 +24,7 @@
#include "structs.h"
area_t screen_get_area(int, statusbar_t *, padding_t *);
area_t screen_area_get(int, statusbar_t *, padding_t *);
area_t display_area_get(int, statusbar_t *, padding_t *);
int screen_virttophys(int);
void move_client_to_screen(client_t *, int, bool);

View File

@ -90,7 +90,7 @@ statusbar_position_update(statusbar_t *statusbar, position_t position)
if((statusbar->position = position) == Off)
return;
area = screen_get_area(statusbar->screen,
area = screen_area_get(statusbar->screen,
NULL,
&globalconf.screens[statusbar->screen].padding);