[gnome-control-center] display: Don't show inactive monitors in the arrangement widget
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] display: Don't show inactive monitors in the arrangement widget
- Date: Fri, 25 Aug 2017 14:57:12 +0000 (UTC)
commit 6a9274a1651c071c2d7294fb8a53e610fd3a3e6f
Author: Rui Matos <tiagomatos gmail com>
Date: Fri Aug 25 15:58:35 2017 +0200
display: Don't show inactive monitors in the arrangement widget
Inactive monitors are not part of the configuration global geometry,
i.e. they don't have a position set, so it doesn't make sense to show
them.
panels/display/cc-display-panel.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/panels/display/cc-display-panel.c b/panels/display/cc-display-panel.c
index ab80a40..371f5c6 100644
--- a/panels/display/cc-display-panel.c
+++ b/panels/display/cc-display-panel.c
@@ -463,13 +463,9 @@ paint_output (CcDisplayPanel *panel,
cairo_rectangle (cr, x, y, width, height);
cairo_fill (cr);
- if (!cc_display_monitor_is_active (output) ||
- (cc_display_monitor_is_builtin (output) && priv->lid_is_closed))
- pixbuf = NULL;
- else
- pixbuf = gnome_bg_create_thumbnail (priv->background,
- priv->thumbnail_factory,
- gdk_screen_get_default (), width, height);
+ pixbuf = gnome_bg_create_thumbnail (priv->background,
+ priv->thumbnail_factory,
+ gdk_screen_get_default (), width, height);
if (cc_display_monitor_is_primary (output)
|| cc_display_config_is_cloning (configuration))
@@ -2954,6 +2950,10 @@ on_area_paint (FooScrollArea *area,
CcDisplayMonitor *output = list->data;
GdkRectangle viewport;
+ if (!cc_display_monitor_is_active (output) ||
+ (cc_display_monitor_is_builtin (output) && self->priv->lid_is_closed))
+ continue;
+
cairo_save (cr);
foo_scroll_area_get_viewport (area, &viewport);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]