Comment 3 for bug 400301

Revision history for this message
Jeremy Nickurak (nickurak) wrote : Re: openbox + gnome workspace switcher does not work

Per the bug I just filed as a duplicate of this one:

> gnome-panel 2.27.4-0ubuntu3 contains patch 16_compiz_workspace_switcher.patch which is stupid.
>
> It produces code:
> static void
> pager_update (PagerData *pager)
> {
> wnck_pager_set_orientation (WNCK_PAGER (pager->pager),
> pager->orientation);
> wnck_pager_set_n_rows (WNCK_PAGER (pager->pager),
> pager->n_rows);
>
> if (pager->wm == PAGER_WM_METACITY) {
> wnck_pager_set_show_all (WNCK_PAGER (pager->pager),
> pager->display_all);
> wnck_pager_set_display_mode (WNCK_PAGER (pager->pager),
> pager->display_mode);
> } else {
> wnck_pager_set_show_all (WNCK_PAGER (pager->pager),
> FALSE);
> wnck_pager_set_display_mode (WNCK_PAGER (pager->pager),
> WNCK_PAGER_DISPLAY_CONTENT);
> }
> }
>
> Every other WM than METACITY is forced to show only the current workspace, e.g. Openbox WM. This is definitely not what users want. It should be fixed or completely removed.

I can confirm that removing this patch corrects the behavior of openbox under gnome with karmic.

It seems like:

1) Compiz has a bug with respect to workspaces
2) A patch was introduced which changed the default behavior of the workspace switcher, and then reverted the behavior when metacity was present

My interpretation of that:

(1) is a bug in compiz, which should really be addressed
(2) is just odd. Ideally, the workspace switcher shouldn't contain any code specific to particular window managers. As a workaround until (1) is solved, it could change its behavior specifically when compiz is present.