all repos — fluxbox @ 6eb4a4426d652b88659c035c8cc11d4ae69f50f2

custom fork of the fluxbox windowmanager

fixed vertical alignment of items
fluxgen fluxgen
commit

6eb4a4426d652b88659c035c8cc11d4ae69f50f2

parent

7535d1a54340894509de204eefb016ed14016550

1 files changed, 12 insertions(+), 5 deletions(-)

jump to
M src/IconBar.ccsrc/IconBar.cc

@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: IconBar.cc,v 1.24 2003/02/23 00:51:40 fluxgen Exp $ +// $Id: IconBar.cc,v 1.25 2003/02/23 14:29:08 fluxgen Exp $ #include "IconBar.hh" #include "i18n.hh"

@@ -231,7 +231,8 @@ &border_width, &depth);

//max width on every icon unsigned int icon_width = width / m_iconlist.size(); - + if (m_vertical) + icon_width = height / m_iconlist.size(); //load right size of theme loadTheme(icon_width, height);

@@ -239,9 +240,15 @@ IconList::iterator it = m_iconlist.begin();

IconList::iterator it_end = m_iconlist.end(); for (x = 0; it != it_end; ++it, x += icon_width) { Window iconwin = (*it)->getIconWin(); - XMoveResizeWindow(m_display, iconwin, - x, 0, - icon_width, height); + if (!m_vertical) { + XMoveResizeWindow(m_display, iconwin, + x, 0, + icon_width, height); + } else { + XMoveResizeWindow(m_display, iconwin, + 0, x, + height, icon_width); + } draw((*it), icon_width); decorate(iconwin); }