diff options
author | QC <qball@gmpclient.org> | 2014-05-19 22:12:54 +0200 |
---|---|---|
committer | QC <qball@gmpclient.org> | 2014-05-19 22:12:54 +0200 |
commit | 3157358c630150a1a786950a1a75e47620883ea6 (patch) | |
tree | 6b03ec429796d824ccc859a32dd588d0a5a6bac5 /config | |
parent | 05cf49a8800777db8351f7120474c0405c4cfdf8 (diff) |
Add hmode to xrmoptions.
Diffstat (limited to 'config')
-rw-r--r-- | config/config.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/config/config.c b/config/config.c index 97659b75..f5872e1c 100644 --- a/config/config.c +++ b/config/config.c @@ -68,7 +68,7 @@ Settings config = { // Location of the window. WL_CENTER, WL_NORTH_WEST, WL_NORTH,WL_NORTH_EAST, etc. .location = WL_CENTER, // Mode of window, list (Vertical) or dmenu like (Horizontal) - .wmode = VERTICAL, + .hmode = VERTICAL, // Padding of the window. .padding = 5, .show_title = 1, @@ -105,4 +105,10 @@ void config_sanity_check( void ) WL_WEST, config.location, WL_CENTER); exit(1); } + + if ( !( config.hmode == VERTICAL || config.hmode == HORIZONTAL ) ) + { + fprintf(stderr, "config.hmode is invalid.\n"); + exit(1); + } } |