mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-05 20:26:09 +01:00
remove ScreenInfo typedef and move Area into screen.h
This commit is contained in:
parent
5f079ef73e
commit
a981d984a2
3 changed files with 9 additions and 12 deletions
10
config.h
10
config.h
|
@ -51,16 +51,6 @@ struct Rule
|
||||||
|
|
||||||
typedef struct AwesomeConf AwesomeConf;
|
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;
|
typedef struct Layout Layout;
|
||||||
struct Layout
|
struct Layout
|
||||||
{
|
{
|
||||||
|
|
2
screen.c
2
screen.c
|
@ -38,7 +38,7 @@ Area
|
||||||
get_screen_area(int screen, Statusbar *statusbar, Padding *padding)
|
get_screen_area(int screen, Statusbar *statusbar, Padding *padding)
|
||||||
{
|
{
|
||||||
int screen_number = 0;
|
int screen_number = 0;
|
||||||
ScreenInfo *si;
|
XineramaScreenInfo *si;
|
||||||
Area area;
|
Area area;
|
||||||
|
|
||||||
if(XineramaIsActive(globalconf.display)){
|
if(XineramaIsActive(globalconf.display)){
|
||||||
|
|
9
screen.h
9
screen.h
|
@ -26,7 +26,14 @@
|
||||||
|
|
||||||
#include <X11/extensions/Xinerama.h>
|
#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_screen_area(int, Statusbar *, Padding *);
|
||||||
Area get_display_area(int, Statusbar *, Padding *);
|
Area get_display_area(int, Statusbar *, Padding *);
|
||||||
|
|
Loading…
Reference in a new issue