summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.h5
-rw-r--r--mcwm.c10
2 files changed, 11 insertions, 4 deletions
diff --git a/config.h b/config.h
index 423ccd6..910a29a 100644
--- a/config.h
+++ b/config.h
@@ -34,13 +34,14 @@
/*
* Default colour on border for focused windows. Can be set from
- * command line with "-f color".
+ * command line with "-f colour".
*/
#define FOCUSCOL "chocolate1"
-/* Ditto for unfocused. Use "-u color". */
+/* Ditto for unfocused. Use "-u colour". */
#define UNFOCUSCOL "grey40"
+/* Ditto for fixed windows. Use "-x colour". */
#define FIXEDCOL "grey90"
/* Width of border window, in pixels. */
diff --git a/mcwm.c b/mcwm.c
index c98b108..19bed16 100644
--- a/mcwm.c
+++ b/mcwm.c
@@ -2382,6 +2382,7 @@ int main(int argc, char **argv)
xcb_drawable_t root;
char *focuscol;
char *unfocuscol;
+ char *fixedcol;
struct sigaction sigact; /* Signal handler. */
@@ -2398,10 +2399,11 @@ int main(int argc, char **argv)
conf.terminal = TERMINAL;
focuscol = FOCUSCOL;
unfocuscol = UNFOCUSCOL;
+ fixedcol = FIXEDCOL;
while (1)
{
- ch = getopt(argc, argv, "bt:f:u:");
+ ch = getopt(argc, argv, "bt:f:u:x:");
if (-1 == ch)
{
@@ -2427,6 +2429,10 @@ int main(int argc, char **argv)
case 'u':
unfocuscol = optarg;
break;
+
+ case 'x':
+ fixedcol = optarg;
+ break;
default:
printhelp();
@@ -2451,7 +2457,7 @@ int main(int argc, char **argv)
/* Get some colours. */
conf.focuscol = getcolor(focuscol);
conf.unfocuscol = getcolor(unfocuscol);
- conf.fixedcol = getcolor(FIXEDCOL);
+ conf.fixedcol = getcolor(fixedcol);
/* Get an atom. */
atom_desktop = xcb_atom_get(conn, "_NET_WM_DESKTOP");