static void on_monitors_changed (NemoDesktopManager *manager) { g_return_if_fail (NEMO_IS_DESKTOP_MANAGER (manager)); FETCH_PRIV (manager); GList *l; DEBUG ("Monitors or workarea changed"); if (get_run_state (manager) < RUN_STATE_RUNNING) { DEBUG ("...ignoring possibly bogus MonitorsChanged - we're not RUNNING or FALLBACK"); return; } if (((guint) get_n_monitors (manager)) != g_list_length (priv->desktops)) { queue_update_layout (manager); return; } for (l = priv->desktops; l != NULL; l = l->next) { DesktopInfo *info = (DesktopInfo *) l->data; if (NEMO_IS_DESKTOP_WINDOW (info->window)) { nemo_desktop_window_update_geometry (NEMO_DESKTOP_WINDOW (info->window)); } else if (NEMO_IS_BLANK_DESKTOP_WINDOW (info->window)) { nemo_blank_desktop_window_update_geometry (NEMO_BLANK_DESKTOP_WINDOW (info->window)); } } }
static void on_window_scale_changed (GtkWidget *window, GParamSpec *pspec, NemoDesktopManager *manager) { manager->scale_factor_changed_id = 0; queue_update_layout (manager); }