[screen] Rename Padding to padding_t
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
80ec848130
commit
fa08ec5316
16
screen.c
16
screen.c
|
@ -32,14 +32,14 @@
|
||||||
|
|
||||||
extern awesome_t globalconf;
|
extern awesome_t globalconf;
|
||||||
|
|
||||||
/** Get screens info
|
/** Get screens info.
|
||||||
* \param screen Screen number
|
* \param screen Screen number.
|
||||||
* \param statusbar statusbar
|
* \param statusbar Statusbar list to remove.
|
||||||
* \param padding Padding
|
* \param padding Padding.
|
||||||
* \return area_t
|
* \return The screen area.
|
||||||
*/
|
*/
|
||||||
area_t
|
area_t
|
||||||
screen_get_area(int screen, statusbar_t *statusbar, Padding *padding)
|
screen_get_area(int screen, statusbar_t *statusbar, padding_t *padding)
|
||||||
{
|
{
|
||||||
area_t area = globalconf.screens_info->geometry[screen];
|
area_t area = globalconf.screens_info->geometry[screen];
|
||||||
statusbar_t *sb;
|
statusbar_t *sb;
|
||||||
|
@ -77,10 +77,10 @@ screen_get_area(int screen, statusbar_t *statusbar, Padding *padding)
|
||||||
* \param screen Physical screen number.
|
* \param screen Physical screen number.
|
||||||
* \param statusbar The statusbars.
|
* \param statusbar The statusbars.
|
||||||
* \param padding Padding.
|
* \param padding Padding.
|
||||||
* \return area_t
|
* \return The display area.
|
||||||
*/
|
*/
|
||||||
area_t
|
area_t
|
||||||
get_display_area(int phys_screen, statusbar_t *statusbar, Padding *padding)
|
get_display_area(int phys_screen, statusbar_t *statusbar, padding_t *padding)
|
||||||
{
|
{
|
||||||
area_t area = { 0, 0, 0, 0, NULL, NULL };
|
area_t area = { 0, 0, 0, 0, NULL, NULL };
|
||||||
statusbar_t *sb;
|
statusbar_t *sb;
|
||||||
|
|
4
screen.h
4
screen.h
|
@ -24,8 +24,8 @@
|
||||||
|
|
||||||
#include "structs.h"
|
#include "structs.h"
|
||||||
|
|
||||||
area_t screen_get_area(int, statusbar_t *, Padding *);
|
area_t screen_get_area(int, statusbar_t *, padding_t *);
|
||||||
area_t get_display_area(int, statusbar_t *, Padding *);
|
area_t get_display_area(int, statusbar_t *, padding_t *);
|
||||||
int screen_virttophys(int);
|
int screen_virttophys(int);
|
||||||
void move_client_to_screen(client_t *, int, bool);
|
void move_client_to_screen(client_t *, int, bool);
|
||||||
|
|
||||||
|
|
|
@ -339,7 +339,7 @@ typedef struct
|
||||||
int left;
|
int left;
|
||||||
/** Padding at right */
|
/** Padding at right */
|
||||||
int right;
|
int right;
|
||||||
} Padding;
|
} padding_t;
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
|
@ -350,7 +350,7 @@ typedef struct
|
||||||
/** Status bar */
|
/** Status bar */
|
||||||
statusbar_t *statusbar;
|
statusbar_t *statusbar;
|
||||||
/** Padding */
|
/** Padding */
|
||||||
Padding padding;
|
padding_t padding;
|
||||||
} screen_t;
|
} screen_t;
|
||||||
|
|
||||||
/** Main configuration structure */
|
/** Main configuration structure */
|
||||||
|
|
Loading…
Reference in New Issue