summaryrefslogtreecommitdiff
path: root/capplets/windows/mate-window-properties.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-02-11 12:39:41 +0100
committerStefano Karapetsas <[email protected]>2014-02-11 12:39:41 +0100
commitb6a1f74ebf64a116ae92e6ff88b9a8a398113e2a (patch)
tree3ab91641dfd6e93a376fae6122690acdcec946cc /capplets/windows/mate-window-properties.c
parente3e3007adbccea95e9619aa5272fe98ff3351453 (diff)
downloadmate-control-center-b6a1f74ebf64a116ae92e6ff88b9a8a398113e2a.tar.bz2
mate-control-center-b6a1f74ebf64a116ae92e6ff88b9a8a398113e2a.tar.xz
windows: Add metacity support
Diffstat (limited to 'capplets/windows/mate-window-properties.c')
-rw-r--r--capplets/windows/mate-window-properties.c13
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;
}