From 31eafb8f436eb291013c267c7787acc22dddc1be Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Mon, 29 Oct 2018 23:43:40 -0300 Subject: [PATCH] No longer consider the whole screen as a monitor --- src/desktop/desktop.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/desktop/desktop.c b/src/desktop/desktop.c index ee54ef4..f9b561b 100644 --- a/src/desktop/desktop.c +++ b/src/desktop/desktop.c @@ -2359,7 +2359,7 @@ static void _on_preferences_monitors_changed(gpointer data) char buf[64]; active = gtk_combo_box_get_active(GTK_COMBO_BOX(desktop->pr_monitors)); - if(active-- <= 0 + if(active < 0 || _desktop_get_monitor_properties(desktop, active, &geometry, NULL, NULL, &width, &height) != 0) _desktop_get_properties(desktop, &geometry, NULL, NULL, @@ -2407,13 +2407,9 @@ static void _on_preferences_monitors_refresh(gpointer data) #if GTK_CHECK_VERSION(2, 24, 0) gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(desktop->pr_imonitor), _("Default monitor")); - gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(desktop->pr_monitors), - _("Whole screen")); #else gtk_combo_box_append_text(GTK_COMBO_BOX(desktop->pr_imonitor), _("Default monitor")); - gtk_combo_box_append_text(GTK_COMBO_BOX(desktop->pr_monitors), - _("Whole screen")); #endif #if GTK_CHECK_VERSION(2, 14, 0) # if GTK_CHECK_VERSION(3, 22, 0)