summaryrefslogtreecommitdiff
path: root/openbox/config.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-05-11 23:57:56 +0000
committerDana Jansens <danakj@orodu.net>2003-05-11 23:57:56 +0000
commit9938de36938107546b2e5b0410cc97d7a01632e7 (patch)
tree76e33f9d2ff93a3bcccf462474a022f5fe4d89db /openbox/config.c
parentea6b9cafe94672bd1798e04e6962eb8ae9d2b8ac (diff)
add opaque move/resize to the rc3
Diffstat (limited to 'openbox/config.c')
-rw-r--r--openbox/config.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/openbox/config.c b/openbox/config.c
index 959f6c2c..5624c48c 100644
--- a/openbox/config.c
+++ b/openbox/config.c
@@ -12,6 +12,9 @@ char *config_theme;
int config_desktops_num;
GSList *config_desktops_names;
+gboolean config_opaque_move;
+gboolean config_opaque_resize;
+
static void parse_focus(char *name, ParseToken *value)
{
if (!g_ascii_strcasecmp(name, "focusnew")) {
@@ -96,6 +99,25 @@ static void parse_desktops(char *name, ParseToken *value)
parse_free_token(value);
}
+static void parse_moveresize(char *name, ParseToken *value)
+{
+ if (!g_ascii_strcasecmp(name, "opaque_move")) {
+ if (value->type != TOKEN_BOOL)
+ yyerror("invalid value");
+ else {
+ config_opaque_move = value->data.integer;
+ }
+ } else if (!g_ascii_strcasecmp(name, "opaque_resize")) {
+ if (value->type != TOKEN_BOOL)
+ yyerror("invalid value");
+ else {
+ config_opaque_resize = value->data.integer;
+ }
+ } else
+ yyerror("invalid option");
+ parse_free_token(value);
+}
+
void config_startup()
{
config_focus_new = TRUE;
@@ -114,6 +136,11 @@ void config_startup()
config_desktops_names = NULL;
parse_reg_section("desktops", NULL, parse_desktops);
+
+ config_opaque_move = TRUE;
+ config_opaque_resize = TRUE;
+
+ parse_reg_section("moveresize", NULL, parse_moveresize);
}
void config_shutdown()