Skip to content

Commit

Permalink
do not apply xrandr config in ukwm
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyi92 committed Oct 8, 2018
1 parent 895670a commit 42ef857
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/backends/meta-monitor-config-migration.c
Original file line number Diff line number Diff line change
Expand Up @@ -1160,7 +1160,7 @@ meta_migrate_old_user_monitors_config (MetaMonitorConfigStore *config_store,
g_autoptr (GFile) user_file = NULL;

user_file_path = g_build_filename (g_get_user_config_dir (),
"monitors.xml",
"ukwm-monitors.xml",
NULL);
user_file = g_file_new_for_path (user_file_path);
backup_path = g_build_filename (g_get_user_config_dir (),
Expand All @@ -1173,7 +1173,7 @@ meta_migrate_old_user_monitors_config (MetaMonitorConfigStore *config_store,
NULL, NULL, NULL,
error))
{
g_warning ("Failed to make a backup of monitors.xml: %s",
g_warning ("Failed to make a backup of ukwm-monitors.xml: %s",
(*error)->message);
g_clear_error (error);
}
Expand Down
4 changes: 2 additions & 2 deletions src/backends/meta-monitor-config-store.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ handle_start_element (GMarkupParseContext *context,
g_set_error_literal (error,
META_MONITOR_CONFIG_STORE_ERROR,
META_MONITOR_CONFIG_STORE_ERROR_NEEDS_MIGRATION,
"monitors.xml has the old format");
"ukwm-monitors.xml has the old format");
return;
}

Expand Down Expand Up @@ -1489,7 +1489,7 @@ meta_monitor_config_store_constructed (GObject *object)
GError *error = NULL;

user_file_path = g_build_filename (g_get_user_config_dir (),
"monitors.xml",
"ukwm-monitors.xml",
NULL);
config_store->user_file = g_file_new_for_path (user_file_path);

Expand Down
8 changes: 5 additions & 3 deletions src/backends/x11/meta-monitor-manager-xrandr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1502,6 +1502,8 @@ meta_monitor_manager_xrandr_apply_monitors_config (MetaMonitorManager *mana
MetaMonitorsConfigMethod method,
GError **error)
{
/* Since xrandr applied by desktop,ukwm should not apply xrandr config
GPtrArray *crtc_infos;
GPtrArray *output_infos;
Expand All @@ -1517,7 +1519,7 @@ meta_monitor_manager_xrandr_apply_monitors_config (MetaMonitorManager *mana
return FALSE;
if (method != META_MONITORS_CONFIG_METHOD_VERIFY)
{
{*/
/*
* If the assignment has not changed, we won't get any notification about
* any new configuration from the X server; but we still need to update
Expand All @@ -1526,7 +1528,7 @@ meta_monitor_manager_xrandr_apply_monitors_config (MetaMonitorManager *mana
* must check that our new assignment actually changes anything, otherwise
* just update the logical state.
*/
if (is_assignments_changed (manager,
/* if (is_assignments_changed (manager,
(MetaCrtcInfo **) crtc_infos->pdata,
crtc_infos->len,
(MetaOutputInfo **) output_infos->pdata,
Expand All @@ -1546,7 +1548,7 @@ meta_monitor_manager_xrandr_apply_monitors_config (MetaMonitorManager *mana
}
g_ptr_array_free (crtc_infos, TRUE);
g_ptr_array_free (output_infos, TRUE);
g_ptr_array_free (output_infos, TRUE);*/

return TRUE;
}
Expand Down

0 comments on commit 42ef857

Please sign in to comment.