From b6a1f74ebf64a116ae92e6ff88b9a8a398113e2a Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Tue, 11 Feb 2014 12:39:41 +0100 Subject: windows: Add metacity support --- capplets/windows/mate-window-properties.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'capplets/windows/mate-window-properties.c') 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 #include +#include + +#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; } -- cgit v1.2.1