summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Plattner <aplattner@nvidia.com>2011-05-19 12:18:44 -0700
committerAaron Plattner <aplattner@nvidia.com>2011-05-19 12:18:44 -0700
commitf5cb6655d9de05bdd5c6713e35dbf9cdc3f8bc5c (patch)
tree745c273dd58cc58cd241e697d3bb9ba38fa45e57
parentc47821f60cc0b0a32002e6711c388ae23de49fbc (diff)
270.41.19270.41.19
-rw-r--r--src/gtk+-2.x/ctkdisplayconfig.c9
-rw-r--r--src/gtk+-2.x/ctkdisplayconfig.h1
-rw-r--r--src/gtk+-2.x/ctkecc.c3
-rw-r--r--version.mk2
4 files changed, 10 insertions, 5 deletions
diff --git a/src/gtk+-2.x/ctkdisplayconfig.c b/src/gtk+-2.x/ctkdisplayconfig.c
index 4dbcefa..f9e1600 100644
--- a/src/gtk+-2.x/ctkdisplayconfig.c
+++ b/src/gtk+-2.x/ctkdisplayconfig.c
@@ -521,7 +521,7 @@ void update_btn_apply(CtkDisplayConfig *ctk_object, Bool sensitive)
if (xrandr_available) break;
}
- if (!xrandr_available) {
+ if (!xrandr_available && !ctk_object->primary_display_changed) {
sensitive = FALSE;
}
}
@@ -1075,6 +1075,7 @@ static void screen_primary_display_toggled(GtkWidget *widget,
if (enabled) {
screen->primaryDisplay = display;
+ ctk_object->primary_display_changed = TRUE;
}
user_changed_attributes(ctk_object);
@@ -1172,6 +1173,7 @@ GtkWidget* ctk_display_config_new(NvCtrlAttributeHandle *handle,
ctk_object->forced_reset_allowed = TRUE;
ctk_object->notify_user_of_reset = TRUE;
ctk_object->ignore_reset_events = FALSE;
+ ctk_object->primary_display_changed = FALSE;
ctk_object->last_resolution_idx = -1;
@@ -6463,6 +6465,8 @@ static int update_screen_metamodes(CtkDisplayConfig *ctk_object,
clear_apply = 1;
}
+ } else {
+ clear_apply = 1;
}
/* Post process the metamodes list */
@@ -6539,7 +6543,7 @@ static void apply_clicked(GtkWidget *widget, gpointer user_data)
}
}
- if (screen->primaryDisplay) {
+ if (screen->primaryDisplay && ctk_object->primary_display_changed) {
gchar *primary_str =
display_get_type_str(screen->primaryDisplay->device_mask,
0);
@@ -6557,6 +6561,7 @@ static void apply_clicked(GtkWidget *widget, gpointer user_data)
/* Make sure other parts of nvidia-settings get updated */
ctk_event_emit_string(screen->ctk_event, 0,
NV_CTRL_STRING_TWINVIEW_XINERAMA_INFO_ORDER);
+ ctk_object->primary_display_changed = FALSE;
}
}
}
diff --git a/src/gtk+-2.x/ctkdisplayconfig.h b/src/gtk+-2.x/ctkdisplayconfig.h
index 6aacca0..03919ca 100644
--- a/src/gtk+-2.x/ctkdisplayconfig.h
+++ b/src/gtk+-2.x/ctkdisplayconfig.h
@@ -71,6 +71,7 @@ typedef struct _CtkDisplayConfig
GtkWidget *chk_xinerama_enabled;
GtkWidget *chk_primary_display;
+ gboolean primary_display_changed;
GtkWidget *notebook; /* Tabbed notebook for display and X screen pages */
diff --git a/src/gtk+-2.x/ctkecc.c b/src/gtk+-2.x/ctkecc.c
index 167fc02..3596a71 100644
--- a/src/gtk+-2.x/ctkecc.c
+++ b/src/gtk+-2.x/ctkecc.c
@@ -41,8 +41,7 @@
static const char *__ecc_settings_help =
"This page allows you to change the Error Correction Code (ECC) "
-"setting for this GPU. You can also view memory details and the number "
-"of ECC events.";
+"setting for this GPU.";
static const char *__ecc_status_help =
"Returns the current hardware ECC setting "
diff --git a/version.mk b/version.mk
index 4c4ae56..ac06417 100644
--- a/version.mk
+++ b/version.mk
@@ -1 +1 @@
-NVIDIA_VERSION = 270.41.06
+NVIDIA_VERSION = 270.41.19