diff options
author | Thomas Thurman <tthurman@gnome.org> | 2009-07-10 08:14:14 -0400 |
---|---|---|
committer | Thomas Thurman <tthurman@gnome.org> | 2009-07-10 08:14:14 -0400 |
commit | b6cc1d38b537012cb746b8bb5f9dfc4ae8c0524a (patch) | |
tree | effc2d4583fac7cb8e5ebd921c800b5cb7625bbe | |
parent | 7dec05b7341261457b65f0cf35337e7551e4153c (diff) | |
download | metacity-b6cc1d38b537012cb746b8bb5f9dfc4ae8c0524a.tar.gz |
start of load routine
-rw-r--r-- | src/core/matching.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/core/matching.c b/src/core/matching.c index 619e532b..1888b121 100644 --- a/src/core/matching.c +++ b/src/core/matching.c @@ -55,9 +55,21 @@ get_window_role (MetaWindow *window) void meta_matching_load_from_role (MetaWindow *window) { + gint x, y, w, h; + gchar *role = get_window_role (window); + + if (!role) + return; + load_matching_data (); - /* stub */ + /* FIXME error checking */ + x = g_key_file_get_integer (matching_keyfile, role, "x", NULL); + y = g_key_file_get_integer (matching_keyfile, role, "y", NULL); + w = g_key_file_get_integer (matching_keyfile, role, "w", NULL); + h = g_key_file_get_integer (matching_keyfile, role, "h", NULL); + + } void |