summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAaron Plattner <aplattner@nvidia.com>2011-06-14 09:16:57 -0700
committerAaron Plattner <aplattner@nvidia.com>2011-06-14 09:16:57 -0700
commit7b2c091f581cb241fb4f5c8b9203fb3b201ea9b5 (patch)
treea22933c14ae1a3591a3e9c5a09191d33b999a0f2 /src
parent6921b27ae09bb9a877b2b28dadb68aa46a9c7e7b (diff)
275.09.07275.09.07
Diffstat (limited to 'src')
-rw-r--r--src/gtk+-2.x/ctkdisplayconfig-utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gtk+-2.x/ctkdisplayconfig-utils.c b/src/gtk+-2.x/ctkdisplayconfig-utils.c
index 42755e3..e7a291d 100644
--- a/src/gtk+-2.x/ctkdisplayconfig-utils.c
+++ b/src/gtk+-2.x/ctkdisplayconfig-utils.c
@@ -1761,6 +1761,7 @@ void gpu_remove_and_free_display(nvDisplayPtr display)
}
}
}
+ gpu->connected_displays &= ~(display->device_mask);
gpu->num_displays--;
display_free(display);
@@ -1781,6 +1782,7 @@ static void gpu_remove_displays(nvGpuPtr gpu)
while (gpu->displays) {
gpu_remove_and_free_display(gpu->displays);
}
+ gpu->connected_displays = 0;
} /* gpu_remove_displays() */