mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
[screen] s/get_display_area/display_area_get/
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
fa08ec5316
commit
5f2585d82e
4 changed files with 4 additions and 4 deletions
2
client.c
2
client.c
|
@ -500,7 +500,7 @@ client_resize(client_t *c, area_t geometry, bool hints)
|
|||
return false;
|
||||
|
||||
/* offscreen appearance fixes */
|
||||
area = get_display_area(c->phys_screen, NULL,
|
||||
area = display_area_get(c->phys_screen, NULL,
|
||||
&globalconf.screens[c->screen].padding);
|
||||
|
||||
if(geometry.x > area.width)
|
||||
|
|
2
screen.c
2
screen.c
|
@ -80,7 +80,7 @@ screen_get_area(int screen, statusbar_t *statusbar, padding_t *padding)
|
|||
* \return The display area.
|
||||
*/
|
||||
area_t
|
||||
get_display_area(int phys_screen, statusbar_t *statusbar, padding_t *padding)
|
||||
display_area_get(int phys_screen, statusbar_t *statusbar, padding_t *padding)
|
||||
{
|
||||
area_t area = { 0, 0, 0, 0, NULL, NULL };
|
||||
statusbar_t *sb;
|
||||
|
|
2
screen.h
2
screen.h
|
@ -25,7 +25,7 @@
|
|||
#include "structs.h"
|
||||
|
||||
area_t screen_get_area(int, statusbar_t *, padding_t *);
|
||||
area_t get_display_area(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);
|
||||
|
||||
|
|
2
widget.c
2
widget.c
|
@ -159,7 +159,7 @@ widget_render(widget_node_t *wnode, draw_context_t *ctx, xcb_gcontext_t gc, xcb_
|
|||
if((data = xcb_get_property_value(prop_r)))
|
||||
{
|
||||
rootpix = *(xcb_pixmap_t *) data;
|
||||
rootsize = get_display_area(ctx->phys_screen, NULL, NULL);
|
||||
rootsize = display_area_get(ctx->phys_screen, NULL, NULL);
|
||||
switch(position)
|
||||
{
|
||||
case Left:
|
||||
|
|
Loading…
Reference in a new issue