remove ScreenInfo typedef and move Area into screen.h

This commit is contained in:
Julien Danjou 2007-12-23 09:55:46 +01:00
parent 5f079ef73e
commit a981d984a2
3 changed files with 9 additions and 12 deletions

View file

@ -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
{

View file

@ -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)){

View file

@ -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 *);