diff options
Diffstat (limited to 'capplets/windows/mate-window-properties.c')
-rw-r--r-- | capplets/windows/mate-window-properties.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/capplets/windows/mate-window-properties.c b/capplets/windows/mate-window-properties.c index c653c9db..d51895b7 100644 --- a/capplets/windows/mate-window-properties.c +++ b/capplets/windows/mate-window-properties.c @@ -32,6 +32,10 @@ #include <string.h> #include <mate-wm-manager.h> +#include <gdk/gdkx.h> + +#include "mate-metacity-support.h" +#include "wm-common.h" #include "capplet-util.h" typedef struct @@ -426,6 +430,7 @@ main (int argc, char **argv) MateWMSettings new_settings; GtkBuilder *builder; GError *error = NULL; + const char *name; int rc = 0; int i; @@ -442,6 +447,14 @@ main (int argc, char **argv) current_wm = mate_wm_manager_get_current (screen); if (current_wm == NULL) { + /* metacity support */ + name = gdk_x11_screen_get_window_manager_name (screen); + if (g_strcmp0 (name, WM_COMMON_METACITY) == 0) { + mate_metacity_config_tool (); + return 0; + } + + /* other window managers */ try_spawn_config_tool (screen); goto out; } |