diff options
author | Aaron Plattner <aplattner@nvidia.com> | 2011-07-26 17:48:54 -0700 |
---|---|---|
committer | Aaron Plattner <aplattner@nvidia.com> | 2011-07-26 17:48:54 -0700 |
commit | 6b2509c8e0428eb9c39a0401ae8fe7aa4ea10ed1 (patch) | |
tree | 800eb17930f09cff6757e69455dbdfdf1f27f099 | |
parent | 334727ed4da301a62eca8cafa21163fe0217d2fc (diff) |
275.21275.21
-rw-r--r-- | src/gtk+-2.x/ctkdisplayconfig-utils.c | 20 | ||||
-rw-r--r-- | version.mk | 2 |
2 files changed, 13 insertions, 9 deletions
diff --git a/src/gtk+-2.x/ctkdisplayconfig-utils.c b/src/gtk+-2.x/ctkdisplayconfig-utils.c index e7a291d..04e5577 100644 --- a/src/gtk+-2.x/ctkdisplayconfig-utils.c +++ b/src/gtk+-2.x/ctkdisplayconfig-utils.c @@ -1813,6 +1813,7 @@ static void gpu_add_display(nvGpuPtr gpu, nvDisplayPtr display) } } } + gpu->connected_displays |= display->device_mask; gpu->num_displays++; } /* gpu_add_display() */ @@ -2547,12 +2548,9 @@ static Bool layout_add_screen_from_server(nvLayoutPtr layout, screen->dim[W] = NvCtrlGetScreenWidth(screen->handle); screen->dim[H] = NvCtrlGetScreenHeight(screen->handle); - - - /* Add the screen at the end of the gpu's screen list */ + /* Add the screen to the layout */ layout_add_screen(layout, screen); - /* Parse the screen's metamodes (ties displays on the gpu to the screen) */ if (!screen->no_scanout) { if (!screen_add_metamodes(screen, err_str)) { @@ -2568,13 +2566,13 @@ static Bool layout_add_screen_from_server(nvLayoutPtr layout, 0, NV_CTRL_STRING_TWINVIEW_XINERAMA_INFO_ORDER, &primary_str); - + if (ret == NvCtrlSuccess) { unsigned int device_mask; - + /* Parse the device mask */ parse_read_display_name(primary_str, &device_mask); - + /* Find the matching primary display */ screen->primaryDisplay = gpu_get_display(screen->gpu, device_mask); } @@ -2583,7 +2581,13 @@ static Bool layout_add_screen_from_server(nvLayoutPtr layout, return TRUE; fail: - screen_free(screen); + if (screen) { + if (screen->layout) { + layout_remove_and_free_screen(screen); + } else { + screen_free(screen); + } + } return FALSE; @@ -1 +1 @@ -NVIDIA_VERSION = 275.19 +NVIDIA_VERSION = 275.21 |