all repos — fluxbox @ 5718180e6e5002ef172c106f4c6cfbb68567e962

custom fork of the fluxbox windowmanager

indentation
fluxgen fluxgen
commit

5718180e6e5002ef172c106f4c6cfbb68567e962

parent

43fd8e56ea706bccd260e70b027070552cfe929f

1 files changed, 14 insertions(+), 14 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.9 2002/02/04 22:43:15 fluxgen Exp $ +// $Id: IconBar.cc,v 1.10 2002/02/07 14:45:02 fluxgen Exp $ #include "IconBar.hh" #include "i18n.hh"

@@ -185,7 +185,7 @@ unsigned int width, height;

unsigned int border_width, depth; //not used int x, y; XGetGeometry(m_display, m_parent, &root, &x, &y, &width, &height, - &border_width, &depth); + &border_width, &depth); //max width on every icon unsigned int icon_width = width / m_iconlist.size();

@@ -198,8 +198,8 @@ 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); + x, 0, + icon_width, height); draw((*it), icon_width); decorate(iconwin); }

@@ -212,20 +212,20 @@ // returns the created X Window

//---------------------------------------------- Window IconBar::createIconWindow(FluxboxWindow *fluxboxwin, Window parent) { unsigned long attrib_mask = CWBackPixmap | CWBackPixel | CWBorderPixel | - CWColormap | CWOverrideRedirect | CWEventMask; + CWColormap | CWOverrideRedirect | CWEventMask; XSetWindowAttributes attrib; - attrib.background_pixmap = None; - attrib.background_pixel = attrib.border_pixel = - fluxboxwin->getScreen()->getWindowStyle()->tab.border_color.getPixel(); - attrib.colormap = fluxboxwin->getScreen()->getColormap(); - attrib.override_redirect = True; - attrib.event_mask = ButtonPressMask | ButtonReleaseMask | - ButtonMotionMask | ExposureMask | EnterWindowMask; + attrib.background_pixmap = None; + attrib.background_pixel = attrib.border_pixel = + fluxboxwin->getScreen()->getWindowStyle()->tab.border_color.getPixel(); + attrib.colormap = fluxboxwin->getScreen()->getColormap(); + attrib.override_redirect = True; + attrib.event_mask = ButtonPressMask | ButtonReleaseMask | + ButtonMotionMask | ExposureMask | EnterWindowMask; //create iconwindow Window iconwin = XCreateWindow(m_display, parent, 0, 0, 1, 1, 0, - fluxboxwin->getScreen()->getDepth(), InputOutput, fluxboxwin->getScreen()->getVisual(), - attrib_mask, &attrib); + fluxboxwin->getScreen()->getDepth(), InputOutput, fluxboxwin->getScreen()->getVisual(), + attrib_mask, &attrib); return iconwin; }