remove ScreenInfo typedef and move Area into screen.h
This commit is contained in:
parent
5f079ef73e
commit
a981d984a2
10
config.h
10
config.h
|
@ -51,16 +51,6 @@ struct Rule
|
|||
|
||||
typedef struct AwesomeConf AwesomeConf;
|
||||
|
||||
typedef struct Area Area;
|
||||
struct Area
|
||||
{
|
||||
/* Co-ords of upper left corner */
|
||||
int x;
|
||||
int y;
|
||||
int width;
|
||||
int height;
|
||||
};
|
||||
|
||||
typedef struct Layout Layout;
|
||||
struct Layout
|
||||
{
|
||||
|
|
2
screen.c
2
screen.c
|
@ -38,7 +38,7 @@ Area
|
|||
get_screen_area(int screen, Statusbar *statusbar, Padding *padding)
|
||||
{
|
||||
int screen_number = 0;
|
||||
ScreenInfo *si;
|
||||
XineramaScreenInfo *si;
|
||||
Area area;
|
||||
|
||||
if(XineramaIsActive(globalconf.display)){
|
||||
|
|
9
screen.h
9
screen.h
|
@ -26,7 +26,14 @@
|
|||
|
||||
#include <X11/extensions/Xinerama.h>
|
||||
|
||||
typedef XineramaScreenInfo ScreenInfo;
|
||||
typedef struct
|
||||
{
|
||||
/* Co-ords of upper left corner */
|
||||
int x;
|
||||
int y;
|
||||
int width;
|
||||
int height;
|
||||
} Area;
|
||||
|
||||
Area get_screen_area(int, Statusbar *, Padding *);
|
||||
Area get_display_area(int, Statusbar *, Padding *);
|
||||
|
|
Loading…
Reference in New Issue