cairo-dock-team team mailing list archive
-
cairo-dock-team team
-
Mailing list archive
-
Message #00915
[Bug 502247] Re: Switcher applet not add the desktop, when desktop is one.
Thanks to have reported this bug. I confirme it !
** Changed in: cairo-dock-core
Importance: Undecided => Low
** Changed in: cairo-dock-core
Status: New => Confirmed
** Changed in: cairo-dock-core
Milestone: None => 2.1.2
--
Switcher applet not add the desktop, when desktop is one.
https://bugs.launchpad.net/bugs/502247
You received this bug notification because you are a member of Cairo-
Dock Team, which is subscribed to Cairo-Dock Core.
Status in Cairo-Dock : Core: Confirmed
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);
}
}
References