diff options
author | Stefano Karapetsas <[email protected]> | 2013-04-08 16:02:53 +0200 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2013-04-08 16:02:53 +0200 |
commit | 9d78b6e1d2cd8cd437c1694da6e6642c99cc498a (patch) | |
tree | e5257427597e04bf71b2b807503cf59da4a1b32a | |
parent | ec9a50e1473288030dd807769e29caa7192ebd23 (diff) | |
download | mate-panel-9d78b6e1d2cd8cd437c1694da6e6642c99cc498a.tar.bz2 mate-panel-9d78b6e1d2cd8cd437c1694da6e6642c99cc498a.tar.xz |
Fix panels issue when user has two separate X screens
Closes https://github.com/mate-desktop/mate-panel/issues/87
Closes https://github.com/mate-desktop/mate-panel/issues/89
-rw-r--r-- | mate-panel/panel-layout.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mate-panel/panel-layout.c b/mate-panel/panel-layout.c index d86bcd39..47324208 100644 --- a/mate-panel/panel-layout.c +++ b/mate-panel/panel-layout.c @@ -118,7 +118,7 @@ panel_layout_append_group_helper (GKeyFile *keyfile, const char *type_for_error_message) { gboolean retval = FALSE; - const char *id; + char *id; char *unique_id = NULL; char *path = NULL; GSettings *settings = NULL; @@ -162,6 +162,9 @@ panel_layout_append_group_helper (GKeyFile *keyfile, existing_ids = panel_dconf_list_subdirs (dconf_path, TRUE); if (id) { + if (set_screen_to > 0) { + id = g_strdup_printf ("%s-screen%d", id, set_screen_to); + } for (i = 0; existing_ids[i]; i++) { if (!strcmp (existing_ids[i], id)) { existing_id = TRUE; |