--- panel-plugin/plugin.cpp.orig 2015-03-05 18:00:32.140610460 +0100 +++ panel-plugin/plugin.cpp 2015-03-05 18:45:19.989007731 +0100 @@ -431,7 +431,15 @@ gint icon_width_max = (mode == XFCE_PANEL_PLUGIN_MODE_HORIZONTAL) ? 6 * row_size - border : size - border; - gint icon_height_max = row_size - border; + gint icon_height_max; + if (mode == XFCE_PANEL_PLUGIN_MODE_DESKBAR) + { + icon_height_max = icon_width_max - border; + } + else + { + icon_height_max = row_size - border; + } GdkPixbuf* icon = xfce_panel_pixbuf_from_source_at_size( wm_settings->button_icon_name.c_str(), icon_theme,