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.
This commit is contained in:
parent
dae238cc5f
commit
6a9274a165
1 changed files with 7 additions and 7 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue