Adding Xinerama support

This commit is contained in:
phillbush
2020-07-29 17:55:20 -03:00
parent 3d8536642e
commit 237da9824c
3 changed files with 128 additions and 27 deletions

14
xmenu.h
View File

@@ -36,10 +36,13 @@ struct Config {
int iconpadding;
int horzpadding;
/* the values below are computed by xmenu */
/* the values below are set by options */
int monitor;
int posx, posy; /* rootmenu position */
/* the value below is computed by xmenu */
int iconsize;
int posx, posy; /* cursor position */
int screenw, screenh; /* screen width and height */
int screenw, screenh; /* screen width and height */
};
/* draw context structure */
@@ -70,6 +73,11 @@ struct Item {
Imlib_Image icon;
};
/* monitor and cursor geometry structure */
struct Monitor {
int x, y, w, h; /* monitor geometry */
};
/* menu structure */
struct Menu {
struct Menu *parent; /* parent menu */