Skip to content
  • Jan Ziak's avatar
    tasklist: Auto-adjust icon size (v2) · f26352af
    Jan Ziak authored and Simon Steinbeiß's avatar Simon Steinbeiß committed
    Auto-adjust icon sizes independent of whether showing labels.
    
    Additional changes made by this patch:
    
    - Removal of hard-coded constants when drawing the circled
      number of windows in a group
    - Repaint group button icon when its size changes
    - Tasklist's default button size is increased from 25 to 32 pixels
      in order to avoid icons being cropped at the bottom and at the top
    - Fix a memory leak
    
    Changes in respect to version 1 of this patch (commit 9c9f09ce):
    
    - Fix duplicate application of CSS opacity to the icon of a window group
      when all windows in the group are minimized
    - Update tasklist icon size when panel is resized. The XfcePanelPluginClass
      struct doesn't have a separate 'icon_size_changed' method - a change
      in icon size is being signaled through the 'size_changed' method
      which is also invoked when the panel size changes.
    - Add workarounds to ensure that the icon and the label are laid out
      properly if the icon has been resized
    - Minor code cleanup: return G_SOURCE_REMOVE instead of FALSE
    
    Test environments: FreeBSD, Gentoo, Xubuntu
    
    Closes: #90
    Obsoletes: !28
    See also: #354
    f26352af