Package: xfce4-panel Version: 4.12.0-2 Severity: minor Tags: patch Dear Maintainer,
After upgrading xfce4-panel from 4.10.1-1 to 4.12.0-2, I noticed the workspace switch showing very narrow workspaces. I use one workspace with 4 viewports (compiz), the new pager correctly finds out 4 virtual workspaces, but the sizing part is not doing the same... The attached patch 05_pager-size-for-viewport.patch seem to fix it. -- System Information: Debian Release: stretch/sid APT prefers oldstable-updates APT policy: (500, 'oldstable-updates'), (500, 'oldoldstable'), (500, 'testing'), (500, 'oldstable'), (400, 'unstable'), (200, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.12-1-amd64 (SMP w/8 CPU cores) Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages xfce4-panel depends on: ii exo-utils 0.10.4-2 ii libatk1.0-0 2.16.0-2 ii libc6 2.19-18 ii libcairo2 1.14.0-2.1 ii libdbus-1-3 1.8.16-1 ii libdbus-glib-1-2 0.102-1 ii libexo-1-0 0.10.4-2 ii libfontconfig1 2.11.0-6.3 ii libfreetype6 2.5.2-4 ii libgarcon-1-0 0.4.0-2 ii libgdk-pixbuf2.0-0 2.31.1-2+b1 ii libglib2.0-0 2.44.0-2 ii libgtk2.0-0 2.24.25-3 ii libice6 2:1.0.9-1+b1 ii libpango-1.0-0 1.36.8-3 ii libpangocairo-1.0-0 1.36.8-3 ii libpangoft2-1.0-0 1.36.8-3 ii libsm6 2:1.2.2-1+b1 ii libwnck22 2.30.7-2 ii libx11-6 2:1.6.3-1 ii libxext6 2:1.3.3-1 ii libxfce4ui-1-0 4.12.1-2 ii libxfce4util7 4.12.1-2 ii libxfconf-0-2 4.12.0-2+b1 xfce4-panel recommends no packages. xfce4-panel suggests no packages. -- no debconf information
Index: xfce4-panel-4.12.0/plugins/pager/pager.c =================================================================== --- xfce4-panel-4.12.0.orig/plugins/pager/pager.c +++ xfce4-panel-4.12.0/plugins/pager/pager.c @@ -593,6 +593,18 @@ pager_plugin_size_request (GtkWidget { mode = xfce_panel_plugin_get_mode (XFCE_PANEL_PLUGIN (plugin)); n_workspaces = wnck_screen_get_workspace_count (plugin->wnck_screen); + if (n_workspaces == 1) + { + WnckWorkspace *active_ws; + /* check if we ware in viewport mode */ + active_ws = wnck_screen_get_active_workspace (plugin->wnck_screen); + if (wnck_workspace_is_virtual (active_ws)) + { + /* number of rows * number of columns */ + n_workspaces = (wnck_workspace_get_width (active_ws) / wnck_screen_get_width (plugin->wnck_screen)) + * (wnck_workspace_get_height (active_ws) / wnck_screen_get_height (plugin->wnck_screen)); + } + } n_cols = MAX (1, (n_workspaces + plugin->rows - 1) / plugin->rows); if (mode == XFCE_PANEL_PLUGIN_MODE_HORIZONTAL) {