Switcher applet not add the desktop, when desktop is one.

Bug #502247 reported by Robo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cairo-Dock Core
Invalid
Low
Unassigned

Bug Description

hello, there is one bug in cairo-dock-plugins-2.1.1-2 in switcher applet, when remove the last desktop till it get 1 desktop, then it doesn't add a desktop operation. Why so?

void cd_switcher_add_a_desktop (void)
{
 cd_switcher_change_nb_desktops (+1);
}

static void cd_switcher_change_nb_desktops (int iDeltaNbDesktops)
{
 if (g_iNbDesktops >= g_iNbViewportX * g_iNbViewportY)
 {
  cairo_dock_set_nb_desktops (g_iNbDesktops + iDeltaNbDesktops);
 }
 else
 {
  if (g_iNbViewportX >= g_iNbViewportY)
   cairo_dock_set_nb_viewports (g_iNbViewportX + iDeltaNbDesktops, g_iNbViewportY);
  else
   cairo_dock_set_nb_viewports (g_iNbViewportX, g_iNbViewportY + iDeltaNbDesktops);
 }
}

Revision history for this message
Matthieu Baerts (matttbe) wrote :

Thanks to have reported this bug. I confirme it !

Changed in cairo-dock-core:
importance: Undecided → Low
milestone: none → 2.1.2
status: New → Confirmed
Revision history for this message
Fabounet (fabounet03) wrote :

it does work, but it adds a desktop, instead of a viewport.
I guess you're using Compiz, and Compiz uses only 1 desktop with several viewports.

when there is only 1 desktop and 1 viewport, the dock can't guess if it should add a desktop or a viewport.

so this is not really a bug, but rather a limitation.
since I don't see the point of having 1 desktop/viewport, I think I'll keep the current working ^_^

Changed in cairo-dock-core:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.