Adding the -p option.

Changing config.cursx and config.cursy to config.posx and config.posy.
Adding the parseposition() function.
This commit is contained in:
phillbush
2020-07-23 17:37:28 -03:00
parent 71b4db9241
commit 05cfe1a0da
3 changed files with 59 additions and 16 deletions

View File

@@ -17,30 +17,27 @@ enum {NetWMName, NetWMWindowType, NetWMWindowTypePopupMenu, NetLast};
/* configuration structure */
struct Config {
/* the values below are set by config.h */
const char *font;
const char *background_color;
const char *foreground_color;
const char *selbackground_color;
const char *selforeground_color;
const char *separator_color;
const char *border_color;
int width_pixels;
int height_pixels;
int border_pixels;
int separator_pixels;
int gap_pixels;
int triangle_width;
int triangle_height;
int iconpadding;
int horzpadding;
/* the values below are computed by xmenu */
int iconsize;
int cursx, cursy; /* cursor position */
int posx, posy; /* cursor position */
int screenw, screenh; /* screen width and height */
};