summaryrefslogtreecommitdiff
path: root/openbox/config.h
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-05-21 03:42:25 +0000
committerDana Jansens <danakj@orodu.net>2007-05-21 03:42:25 +0000
commitfd8ce9414aa12028b26fd67082e843ea161e3b90 (patch)
treebc90ab00edd37f27e4649d7e20f53eb109098153 /openbox/config.h
parentadd9c3c1bbb2a9dca01d1bd79147f86328396e47 (diff)
use simple pattern matching for per-app settings. all rules that match are applied to a window rather than just the first
Diffstat (limited to 'openbox/config.h')
-rw-r--r--openbox/config.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/openbox/config.h b/openbox/config.h
index a1598b8c..6a064fff 100644
--- a/openbox/config.h
+++ b/openbox/config.h
@@ -30,11 +30,13 @@
struct _ObParseInst;
+typedef struct _ObAppSettings ObAppSettings;
+
struct _ObAppSettings
{
- gchar *class;
- gchar *name;
- gchar *role;
+ GPatternSpec *class;
+ GPatternSpec *name;
+ GPatternSpec *role;
Point position;
gboolean center_x;
@@ -166,4 +168,12 @@ extern GSList *config_per_app_settings;
void config_startup(struct _ObParseInst *i);
void config_shutdown();
+/*! Create an ObAppSettings structure with the default values */
+ObAppSettings* config_create_app_settings();
+/*! Copies any settings in src to dest, if they are their default value in
+ src. */
+void config_app_settings_copy_non_defaults(const ObAppSettings *src,
+ ObAppSettings *dest);
+
+
#endif