[Pkg-xfce-commits] r9185 - /desktop/trunk/xfce4-panel/debian/patches/02_pager-size-for-viewport.patch
Mateusz Łukasik
mati75-guest at moszumanska.debian.org
Sun May 31 21:06:38 UTC 2015
Author: mati75-guest
Date: Sun May 31 21:06:38 2015
New Revision: 9185
URL: http://svn.debian.org/wsvn/pkg-xfce/?sc=1&rev=9185
Log:
Add 02_pager-size-for-viewport.patch. (Closes: #785582)
Added:
desktop/trunk/xfce4-panel/debian/patches/02_pager-size-for-viewport.patch
Added: desktop/trunk/xfce4-panel/debian/patches/02_pager-size-for-viewport.patch
URL: http://svn.debian.org/wsvn/pkg-xfce/desktop/trunk/xfce4-panel/debian/patches/02_pager-size-for-viewport.patch?rev=9185&op=file
==============================================================================
--- desktop/trunk/xfce4-panel/debian/patches/02_pager-size-for-viewport.patch (added)
+++ desktop/trunk/xfce4-panel/debian/patches/02_pager-size-for-viewport.patch Sun May 31 21:06:38 2015
@@ -0,0 +1,25 @@
+Description: Fix workspace miniature size calculation wrong for viewport mode
+Author: Bin Guo <gb2312 at rcn.com>
+Debian-Bug: https://bugs.debian.org/785582
+
+--- a/plugins/pager/pager.c
++++ b/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)
+ {
More information about the Pkg-xfce-commits
mailing list